mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:29:02 +01:00
Updated some UI messages
This commit is contained in:
parent
bca32b8515
commit
a12479f968
@ -430,9 +430,9 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
var unlockPage = this.pages()['unlockPage'];
|
var unlockPage = this.pages()['unlockPage'];
|
||||||
var overlay = this.overlay();
|
var overlay = this.overlay();
|
||||||
|
|
||||||
|
overlay.show("validating…");
|
||||||
passphrase = (aCredentialType=='PIN') ? Clipperz.PM.PIN.credentialsWithPIN(aCredential)['passphrase'] : aCredential;
|
passphrase = (aCredentialType=='PIN') ? Clipperz.PM.PIN.credentialsWithPIN(aCredential)['passphrase'] : aCredential;
|
||||||
|
|
||||||
overlay.show("validating…");
|
|
||||||
deferredResult = new Clipperz.Async.Deferred('MainController.unlock_handler', {trace:false});
|
deferredResult = new Clipperz.Async.Deferred('MainController.unlock_handler', {trace:false});
|
||||||
deferredResult.addMethod(unlockPage, 'setProps', {'disabled': true});
|
deferredResult.addMethod(unlockPage, 'setProps', {'disabled': true});
|
||||||
|
|
||||||
@ -853,7 +853,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
return Clipperz.Async.callbacks("MainController.updatePIN_handler", [
|
return Clipperz.Async.callbacks("MainController.updatePIN_handler", [
|
||||||
MochiKit.Base.method(this.overlay(), 'show', "updating …", true),
|
MochiKit.Base.method(this.overlay(), 'show', "updating …", true),
|
||||||
MochiKit.Base.method(Clipperz.PM.PIN, 'updatePin', this.user(), aPIN),
|
MochiKit.Base.method(Clipperz.PM.PIN, 'updatePin', this.user(), aPIN),
|
||||||
MochiKit.Base.method(this.overlay(), 'done', "saved", 1)
|
MochiKit.Base.method(this.overlay(), 'done', "", 1)
|
||||||
], {trace:false});
|
], {trace:false});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -861,7 +861,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
return Clipperz.Async.callbacks("MainController.disablePIN_handler", [
|
return Clipperz.Async.callbacks("MainController.disablePIN_handler", [
|
||||||
MochiKit.Base.method(this.overlay(), 'show', "disabling …", true),
|
MochiKit.Base.method(this.overlay(), 'show', "disabling …", true),
|
||||||
MochiKit.Base.method(Clipperz.PM.PIN, 'disablePin'),
|
MochiKit.Base.method(Clipperz.PM.PIN, 'disablePin'),
|
||||||
MochiKit.Base.method(this.overlay(), 'done', "saved", 1)
|
MochiKit.Base.method(this.overlay(), 'done', "", 1)
|
||||||
], {trace:false});
|
], {trace:false});
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1041,6 +1041,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
} else {
|
} else {
|
||||||
if ('pin' in anEvent) {
|
if ('pin' in anEvent) {
|
||||||
var errorCount = Clipperz.PM.PIN.recordFailedAttempt();
|
var errorCount = Clipperz.PM.PIN.recordFailedAttempt();
|
||||||
|
|
||||||
if (errorCount == -1) {
|
if (errorCount == -1) {
|
||||||
errorMessage = "PIN resetted";
|
errorMessage = "PIN resetted";
|
||||||
}
|
}
|
||||||
@ -1565,13 +1566,6 @@ Clipperz.log("THE BROWSER IS OFFLINE");
|
|||||||
], {trace:false});
|
], {trace:false});
|
||||||
},
|
},
|
||||||
|
|
||||||
// updateUserPreferences_handler: function() {
|
|
||||||
// return Clipperz.Async.callbacks("MainController.updateUserPreferences_handler", [
|
|
||||||
// MochiKit.Base.method(this, 'updateUserPreferences'),
|
|
||||||
// MochiKit.Base.method(this, 'refreshCurrentPage'),
|
|
||||||
// ], {trace:false});
|
|
||||||
// },
|
|
||||||
|
|
||||||
setPreference_handler: function(aKeyPath, aValue) {
|
setPreference_handler: function(aKeyPath, aValue) {
|
||||||
return Clipperz.Async.callbacks("MainController.setPreference_handler", [
|
return Clipperz.Async.callbacks("MainController.setPreference_handler", [
|
||||||
MochiKit.Base.method(this.overlay(), 'show', "", true),
|
MochiKit.Base.method(this.overlay(), 'show', "", true),
|
||||||
|
Loading…
Reference in New Issue
Block a user