mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
redux: setMode sagas
This commit is contained in:
parent
dde6cf83e9
commit
0d47cd8773
6 changed files with 127 additions and 51 deletions
|
@ -118,12 +118,12 @@ export class Editor {
|
|||
this.switches[mode].toggle(); // if we have special function on mode when it toggles
|
||||
} else {
|
||||
this.disableMode(mode);
|
||||
this.setMode(MODES.NONE);
|
||||
// this.setMode(MODES.NONE);
|
||||
this.mode = MODES.NONE;
|
||||
}
|
||||
} else {
|
||||
this.disableMode(this.mode);
|
||||
this.setMode(mode);
|
||||
// this.setMode(mode);
|
||||
this.mode = mode;
|
||||
this.enableMode(mode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue