зеркало из https://github.com/mozilla/pjs.git
Bug 600589 - Sync UI: Generating a new custom sync key doesn't have notification message. r=mconnor a=blocking-beta8
This commit is contained in:
Родитель
b78f4afa49
Коммит
cdd46b1d13
|
@ -147,12 +147,16 @@ let Change = {
|
|||
},
|
||||
|
||||
_updateStatusWithString: function Change__updateStatusWithString(string, state) {
|
||||
this._statusRow.hidden = false;
|
||||
document.getElementById("passphraseStrengthRow").hidden = true;
|
||||
this._status.value = string;
|
||||
this._statusIcon.setAttribute("status", state);
|
||||
|
||||
let error = state == "error";
|
||||
this._dialog.getButton("cancel").setAttribute("disabled", !error);
|
||||
this._dialog.getButton("accept").setAttribute("disabled", !error);
|
||||
document.getElementById("printSyncKeyButton").disabled = !error;
|
||||
document.getElementById("saveSyncKeyButton").disabled = !error;
|
||||
|
||||
if (state == "success")
|
||||
window.setTimeout(window.close, 1500);
|
||||
|
|
|
@ -135,10 +135,12 @@
|
|||
</vbox>
|
||||
|
||||
<hbox id="passphraseBackupButtons" pack="center">
|
||||
<button label="&button.syncKeyBackup.print.label;"
|
||||
<button id="printSyncKeyButton"
|
||||
label="&button.syncKeyBackup.print.label;"
|
||||
accesskey="&button.syncKeyBackup.print.accesskey;"
|
||||
oncommand="gSyncUtils.passphrasePrint('passphraseBox');"/>
|
||||
<button label="&button.syncKeyBackup.save.label;"
|
||||
<button id="saveSyncKeyButton"
|
||||
label="&button.syncKeyBackup.save.label;"
|
||||
accesskey="&button.syncKeyBackup.save.accesskey;"
|
||||
oncommand="gSyncUtils.passphraseSave('passphraseBox');"/>
|
||||
</hbox>
|
||||
|
|
Загрузка…
Ссылка в новой задаче