accessDialog: Change fallback button labels
All the new portals dialog mockups have "Deny/Allow" buttons. Rename them. https://gitlab.gnome.org/Teams/Design/os-mockups/-/blob/master/portals/portals.png Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2544>
This commit is contained in:
parent
d0740d605e
commit
39263d3530
@ -36,8 +36,8 @@ class AccessDialog extends ModalDialog.ModalDialog {
|
|||||||
_buildLayout(title, description, body, options) {
|
_buildLayout(title, description, body, options) {
|
||||||
// No support for non-modal system dialogs, so ignore the option
|
// No support for non-modal system dialogs, so ignore the option
|
||||||
// let modal = options['modal'] || true;
|
// let modal = options['modal'] || true;
|
||||||
let denyLabel = options['deny_label'] || _("Deny Access");
|
let denyLabel = options['deny_label'] || _('Deny');
|
||||||
let grantLabel = options['grant_label'] || _("Grant Access");
|
let grantLabel = options['grant_label'] || _('Allow');
|
||||||
let choices = options['choices'] || [];
|
let choices = options['choices'] || [];
|
||||||
|
|
||||||
let content = new Dialog.MessageDialogContent({ title, description });
|
let content = new Dialog.MessageDialogContent({ title, description });
|
||||||
|
Loading…
Reference in New Issue
Block a user