mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
Logo selecting dialog
This commit is contained in:
parent
8333807b31
commit
eaa3594bf9
13 changed files with 210 additions and 3862 deletions
|
@ -4,6 +4,7 @@ import { MODES } from '$constants/modes';
|
|||
import { Stickers } from '$modules/Stickers';
|
||||
import { Router } from '$modules/Router';
|
||||
import { Shotter } from '$modules/Shotter';
|
||||
import { LOGOS } from '$constants/logos';
|
||||
|
||||
export class Editor {
|
||||
constructor({
|
||||
|
@ -71,7 +72,7 @@ export class Editor {
|
|||
|
||||
changeMode = mode => {
|
||||
if (this.mode === mode) {
|
||||
if (this.switches[mode].toggle) {
|
||||
if (this.switches[mode] && this.switches[mode].toggle) {
|
||||
this.switches[mode].toggle(); // if we have special function on mode when it toggles
|
||||
} else {
|
||||
this.disableMode(mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue