mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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) {
|
accountClick(account, event) {
|
||||||
if (account && 0 === event.button) {
|
let email = account && account.email;
|
||||||
|
if (email && 0 === event.button && AccountUserStore.email() != email) {
|
||||||
AccountUserStore.loading(true);
|
AccountUserStore.loading(true);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
@ -61,7 +62,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
||||||
(iError/*, oData*/) => {
|
(iError/*, oData*/) => {
|
||||||
if (iError) {
|
if (iError) {
|
||||||
AccountUserStore.loading(false);
|
AccountUserStore.loading(false);
|
||||||
alert(getNotification(iError).replace('%EMAIL%', account.email));
|
alert(getNotification(iError).replace('%EMAIL%', email));
|
||||||
if (account.isAdditional()) {
|
if (account.isAdditional()) {
|
||||||
showScreenPopup(AccountPopupView, [account]);
|
showScreenPopup(AccountPopupView, [account]);
|
||||||
}
|
}
|
||||||
|
|
@ -84,7 +85,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
||||||
*/
|
*/
|
||||||
rl.route.reload();
|
rl.route.reload();
|
||||||
}
|
}
|
||||||
}, {Email:account.email}
|
}, {Email:email}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue