mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Cleanup constants
This commit is contained in:
parent
87e214aef7
commit
0a95e2c6dc
11 changed files with 40 additions and 104 deletions
|
|
@ -20,17 +20,9 @@ export const leftPanelDisabled = ko.observable(false);
|
|||
export const leftPanelType = ko.observable('');
|
||||
export const leftPanelWidth = ko.observable(0);
|
||||
|
||||
leftPanelDisabled.subscribe((value) => {
|
||||
if (value && moveAction()) {
|
||||
moveAction(false);
|
||||
}
|
||||
});
|
||||
leftPanelDisabled.subscribe(value => value && moveAction() && moveAction(false));
|
||||
|
||||
moveAction.subscribe((value) => {
|
||||
if (value && leftPanelDisabled()) {
|
||||
leftPanelDisabled(false);
|
||||
}
|
||||
});
|
||||
moveAction.subscribe(value => value && leftPanelDisabled() && leftPanelDisabled(false));
|
||||
|
||||
// keys
|
||||
export const keyScopeReal = ko.observable(KeyState.All);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue