mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Resolve #268
This commit is contained in:
parent
60987f4623
commit
30116c183f
1 changed files with 4 additions and 3 deletions
|
@ -53,7 +53,8 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
|||
}
|
||||
|
||||
accountClick(account, event) {
|
||||
if (account && 0 === event.button) {
|
||||
let email = account && account.email;
|
||||
if (email && 0 === event.button && AccountUserStore.email() != email) {
|
||||
AccountUserStore.loading(true);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
@ -61,7 +62,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
|||
(iError/*, oData*/) => {
|
||||
if (iError) {
|
||||
AccountUserStore.loading(false);
|
||||
alert(getNotification(iError).replace('%EMAIL%', account.email));
|
||||
alert(getNotification(iError).replace('%EMAIL%', email));
|
||||
if (account.isAdditional()) {
|
||||
showScreenPopup(AccountPopupView, [account]);
|
||||
}
|
||||
|
@ -84,7 +85,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
|||
*/
|
||||
rl.route.reload();
|
||||
}
|
||||
}, {Email:account.email}
|
||||
}, {Email:email}
|
||||
);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue