mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Add More Information link to Switch Accounts confirmation dialog
This commit is contained in:
parent
8af91b0147
commit
46ba21fe75
1 changed files with 8 additions and 1 deletions
|
|
@ -435,10 +435,11 @@ Zotero_Preferences.Sync = {
|
|||
let confirmationText = await document.l10n.formatValue(
|
||||
'preferences-account-switch-confirmation-text',
|
||||
);
|
||||
let [title, text, acceptLabel] = await document.l10n.formatValues([
|
||||
let [title, text, acceptLabel, moreInfo] = await document.l10n.formatValues([
|
||||
'general-warning',
|
||||
{ id: 'preferences-account-switch-text', args: { username } },
|
||||
'preferences-account-switch-accept',
|
||||
'general-more-information',
|
||||
]);
|
||||
text += "\n\n" + await document.l10n.formatValue(
|
||||
'general-type-to-continue',
|
||||
|
|
@ -449,10 +450,16 @@ Zotero_Preferences.Sync = {
|
|||
text,
|
||||
acceptLabel,
|
||||
confirmationText,
|
||||
extra2Label: moreInfo,
|
||||
};
|
||||
window.openDialog("chrome://zotero/content/hardConfirmationDialog.xhtml", "",
|
||||
"chrome,dialog,dependent,modal,centerscreen", io);
|
||||
|
||||
if (io.extra2) {
|
||||
Zotero.launchURL("https://www.zotero.org/support/kb/switching_accounts");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!io.accept) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue