mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Simplify folder name editing
This commit is contained in:
parent
938c209869
commit
81d521c562
3 changed files with 10 additions and 10 deletions
|
|
@ -465,6 +465,14 @@ export class FolderModel extends AbstractModel {
|
|||
});
|
||||
}
|
||||
|
||||
edit() {
|
||||
this.canBeEdited() && this.editing(true);
|
||||
}
|
||||
|
||||
unedit() {
|
||||
this.editing(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* For url safe '/#/mailbox/...' path
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -52,8 +52,6 @@ export class UserSettingsFolders /*extends AbstractViewSettings*/ {
|
|||
|
||||
this.folderForDeletion = folderForDeletion;
|
||||
|
||||
this.folderForEdit = ko.observable(null).extend({ toggleSubscribeProperty: [this, 'editing'] });
|
||||
|
||||
SettingsUserStore.hideUnsubscribed.subscribe(value => Remote.saveSetting('HideUnsubscribed', value));
|
||||
SettingsUserStore.unhideKolabFolders.subscribe(value => Remote.saveSetting('UnhideKolabFolders', value));
|
||||
}
|
||||
|
|
@ -89,15 +87,9 @@ export class UserSettingsFolders /*extends AbstractViewSettings*/ {
|
|||
});
|
||||
}
|
||||
|
||||
// this.folderForEdit(null);
|
||||
folder.editing(false);
|
||||
}
|
||||
|
||||
folderEditOnEsc(folder) {
|
||||
// this.folderForEdit(null);
|
||||
folder?.editing(false);
|
||||
}
|
||||
|
||||
onShow() {
|
||||
FolderUserStore.folderListError('');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue