Skip to content

Commit 9f85020

Browse files
committed
Added honor roll
1 parent 3ced7ce commit 9f85020

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

[email protected]/lib/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = `3.15.0`
1+
export const VERSION = `3.16.0`

[email protected]/prefs.js

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default class GithubActionsPreferences extends ExtensionPreferences {
2020
const settings = this.getSettings()
2121

2222
const prefsController = new PrefsController(settings)
23-
23+
2424
const {
2525
enabledExtension,
2626

@@ -206,6 +206,14 @@ export default class GithubActionsPreferences extends ExtensionPreferences {
206206
})
207207
otherGroup.add(homepageRow)
208208

209+
const newExtensionRow = createButtonRow({
210+
title: `New extension`,
211+
subtitle: `Check out my new extension`,
212+
buttonLabel: `Check`,
213+
onButtonPressed: () => prefsController.onOpenNewExtensionClicked(),
214+
})
215+
otherGroup.add(newExtensionRow)
216+
209217
const bugBountyRow = createButtonRow({
210218
title: `Bug Bounty program`,
211219
subtitle: `If you find an error and it is corrected in the next version, your login and email will be on the honor list in the extension`,
@@ -214,13 +222,31 @@ export default class GithubActionsPreferences extends ExtensionPreferences {
214222
})
215223
otherGroup.add(bugBountyRow)
216224

217-
const newExtensionRow = createButtonRow({
218-
title: `New extension`,
219-
subtitle: `Check out my new extension`,
220-
buttonLabel: `Check`,
221-
onButtonPressed: () => prefsController.onOpenNewExtensionClicked(),
225+
const honorRollRow = createButtonRow({
226+
title: `Honor Roll`,
227+
subtitle: `List of people who helped develop this extension`,
228+
buttonLabel: `Show`,
229+
onButtonPressed: () => {
230+
let dialog = new Gtk.Dialog({
231+
title: `Honor Roll`,
232+
use_header_bar: true,
233+
modal: true,
234+
})
235+
236+
let label = new Gtk.Label({
237+
label: `\n Empty list :/ \n\n If you had any contribution and you agree to include your nickname + email. \n Please send me an email: [email protected] `,
238+
})
239+
label.set_halign(Gtk.Align.CENTER)
240+
label.set_valign(Gtk.Align.CENTER)
241+
label.set_hexpand(true)
242+
label.set_vexpand(false)
243+
244+
dialog.set_default_size(300, 200)
245+
dialog.get_content_area().append(label)
246+
dialog.show()
247+
},
222248
})
223-
otherGroup.add(newExtensionRow)
249+
otherGroup.add(honorRollRow)
224250

225251
if (hiddenMode) {
226252
const extendedColoredMode = createToggleRow({

0 commit comments

Comments
 (0)