Skip to content

Commit

Permalink
Updated some UI messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gcsolaroli committed Oct 2, 2015
1 parent bca32b8 commit a12479f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions frontend/delta/js/Clipperz/PM/UI/MainController.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,9 @@ Clipperz.log("THE BROWSER IS OFFLINE");
var unlockPage = this.pages()['unlockPage'];
var overlay = this.overlay();

overlay.show("validating…");
passphrase = (aCredentialType=='PIN') ? Clipperz.PM.PIN.credentialsWithPIN(aCredential)['passphrase'] : aCredential;

overlay.show("validating…");
deferredResult = new Clipperz.Async.Deferred('MainController.unlock_handler', {trace:false});
deferredResult.addMethod(unlockPage, 'setProps', {'disabled': true});

Expand Down Expand Up @@ -853,15 +853,15 @@ Clipperz.log("THE BROWSER IS OFFLINE");
return Clipperz.Async.callbacks("MainController.updatePIN_handler", [
MochiKit.Base.method(this.overlay(), 'show', "updating …", true),
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});
},

disablePIN_handler: function() {
return Clipperz.Async.callbacks("MainController.disablePIN_handler", [
MochiKit.Base.method(this.overlay(), 'show', "disabling …", true),
MochiKit.Base.method(Clipperz.PM.PIN, 'disablePin'),
MochiKit.Base.method(this.overlay(), 'done', "saved", 1)
MochiKit.Base.method(this.overlay(), 'done', "", 1)
], {trace:false});
},

Expand Down Expand Up @@ -1041,6 +1041,7 @@ Clipperz.log("THE BROWSER IS OFFLINE");
} else {
if ('pin' in anEvent) {
var errorCount = Clipperz.PM.PIN.recordFailedAttempt();

if (errorCount == -1) {
errorMessage = "PIN resetted";
}
Expand Down Expand Up @@ -1565,13 +1566,6 @@ Clipperz.log("THE BROWSER IS OFFLINE");
], {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) {
return Clipperz.Async.callbacks("MainController.setPreference_handler", [
MochiKit.Base.method(this.overlay(), 'show', "", true),
Expand Down

0 comments on commit a12479f

Please sign in to comment.