Skip to content

Commit

Permalink
Added subtitles to links section
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Aug 20, 2023
1 parent 88df185 commit 616367d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extension/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class PrefsPage extends Adw.PreferencesPage {
//Create a row for the link widget
let linkEntryRow = new Adw.ActionRow({
title: linkInfo[0],
subtitle: linkInfo[1],
activatable: true
});

Expand Down Expand Up @@ -145,9 +146,9 @@ export default class PrivacyPreferences extends ExtensionPreferences {
//Define and add links
let linksInfo = [
//Translated title, link
[_("Report an issue"), "https://github.com/stuarthayhurst/privacy-menu-extension/issues"],
[_("Donate via GitHub"), "https://github.com/sponsors/stuarthayhurst"],
[_("Donate via PayPal"), "https://www.paypal.me/stuartahayhurst"]
[_('Report an issue'), _('GitHub issue tracker'), 'https://github.com/stuarthayhurst/privacy-menu-extension/issues'],
[_('Donate via GitHub'), _('Become a sponsor'), 'https://github.com/sponsors/stuarthayhurst'],
[_('Donate via PayPal'), _('Thanks for your support :)'), 'https://www.paypal.me/stuartahayhurst']
];
settingsPage.addLinks(window, linksInfo, _("Links"));

Expand Down

0 comments on commit 616367d

Please sign in to comment.