mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Improve some login/logout handling
This commit is contained in:
parent
b77854e421
commit
93d8b5a419
4 changed files with 11 additions and 16 deletions
|
|
@ -26,13 +26,13 @@ export class AskPopupView extends AbstractViewPopup {
|
|||
yesClick() {
|
||||
this.close();
|
||||
|
||||
isFunction(this.fYesAction) && this.fYesAction();
|
||||
isFunction(this.fYesAction) && this.fYesAction(this);
|
||||
}
|
||||
|
||||
noClick() {
|
||||
this.close();
|
||||
|
||||
isFunction(this.fNoAction) && this.fNoAction();
|
||||
isFunction(this.fNoAction) && this.fNoAction(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -86,7 +86,7 @@ AskPopupView.password = function(sAskDesc, btnText) {
|
|||
return new Promise(resolve => {
|
||||
this.showModal([
|
||||
sAskDesc,
|
||||
() => resolve(this.__vm.passphrase()),
|
||||
view => resolve(view.passphrase()),
|
||||
() => resolve(null),
|
||||
true,
|
||||
1,
|
||||
|
|
@ -99,7 +99,7 @@ AskPopupView.credentials = function(sAskDesc, btnText) {
|
|||
return new Promise(resolve => {
|
||||
this.showModal([
|
||||
sAskDesc,
|
||||
() => resolve({username:this.__vm.username(), password:this.__vm.passphrase()}),
|
||||
view => resolve({username:view.username(), password:view.passphrase()}),
|
||||
() => resolve(null),
|
||||
true,
|
||||
3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue