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:
Alessandro Bono 2022-11-16 10:10:37 +01:00 committed by Marge Bot
parent d0740d605e
commit 39263d3530

View File

@ -36,8 +36,8 @@ class AccessDialog extends ModalDialog.ModalDialog {
_buildLayout(title, description, body, options) {
// No support for non-modal system dialogs, so ignore the option
// let modal = options['modal'] || true;
let denyLabel = options['deny_label'] || _("Deny Access");
let grantLabel = options['grant_label'] || _("Grant Access");
let denyLabel = options['deny_label'] || _('Deny');
let grantLabel = options['grant_label'] || _('Allow');
let choices = options['choices'] || [];
let content = new Dialog.MessageDialogContent({ title, description });