Add More Information link to Switch Accounts confirmation dialog

This commit is contained in:
Dan Stillman 2026-03-22 09:24:49 -04:00
parent 8af91b0147
commit 46ba21fe75

View file

@ -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;
}