mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 06:46:27 +00:00
Resolve #1689
This commit is contained in:
@@ -2,7 +2,7 @@ import ko from 'ko';
|
||||
|
||||
//import { koComputable } from 'External/ko';
|
||||
import { SettingsCapa, SettingsGet } from 'Common/Globals';
|
||||
import { loadAccountsAndIdentities } from 'Common/UtilsUser';
|
||||
import { loadAccountsAndIdentities, editIdentity } from 'Common/UtilsUser';
|
||||
|
||||
import { AccountUserStore } from 'Stores/User/Account';
|
||||
import { IdentityUserStore } from 'Stores/User/Identity';
|
||||
@@ -12,7 +12,6 @@ import Remote from 'Remote/User/Fetch';
|
||||
import { showScreenPopup } from 'Knoin/Knoin';
|
||||
|
||||
import { AccountPopupView } from 'View/Popup/Account';
|
||||
import { IdentityPopupView } from 'View/Popup/Identity';
|
||||
|
||||
export class UserSettingsAccounts /*extends AbstractViewSettings*/ {
|
||||
constructor() {
|
||||
@@ -44,11 +43,11 @@ export class UserSettingsAccounts /*extends AbstractViewSettings*/ {
|
||||
}
|
||||
|
||||
addNewIdentity() {
|
||||
showScreenPopup(IdentityPopupView);
|
||||
editIdentity();
|
||||
}
|
||||
|
||||
editIdentity(identity) {
|
||||
identity.edit();
|
||||
editIdentity(identity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,6 +8,7 @@ import { Settings, SettingsGet } from 'Common/Globals';
|
||||
import { WYSIWYGS } from 'Common/HtmlEditor';
|
||||
import { addSubscribablesTo, addComputablesTo } from 'External/ko';
|
||||
import { i18n, translateTrigger, translatorReload, convertLangName } from 'Common/Translator';
|
||||
import { editIdentity } from 'Common/UtilsUser';
|
||||
|
||||
import { AbstractViewSettings } from 'Knoin/AbstractViews';
|
||||
import { showScreenPopup } from 'Knoin/Knoin';
|
||||
@@ -161,7 +162,7 @@ export class UserSettingsGeneral extends AbstractViewSettings {
|
||||
}
|
||||
|
||||
editMainIdentity() {
|
||||
IdentityUserStore.main()?.edit?.();
|
||||
editIdentity(IdentityUserStore.main());
|
||||
}
|
||||
|
||||
testSoundNotification() {
|
||||
|
||||
Reference in New Issue
Block a user