mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 03:26:41 +07:00
clearing changed on cleared all
This commit is contained in:
parent
3363708c1f
commit
bed9ea6948
3 changed files with 17 additions and 5 deletions
|
@ -23,6 +23,7 @@ export class Editor {
|
|||
setAddress,
|
||||
getUser,
|
||||
triggerOnChange,
|
||||
clearChanged,
|
||||
}) {
|
||||
this.logo = DEFAULT_LOGO;
|
||||
this.owner = null;
|
||||
|
@ -57,6 +58,9 @@ export class Editor {
|
|||
},
|
||||
[MODES.TRASH]: {
|
||||
toggle: this.clearAll,
|
||||
},
|
||||
[MODES.CONFIRM_CANCEL]: {
|
||||
toggle: this.stopEditing,
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -66,6 +70,7 @@ export class Editor {
|
|||
};
|
||||
|
||||
this.activeSticker = null;
|
||||
this.clearChanged = clearChanged;
|
||||
this.setActiveSticker = setActiveSticker;
|
||||
this.setLogo = setLogo;
|
||||
this.setMode = setMode;
|
||||
|
@ -170,6 +175,8 @@ export class Editor {
|
|||
|
||||
this.setSticker(null);
|
||||
this.changeMode(MODES.NONE);
|
||||
|
||||
this.clearChanged();
|
||||
};
|
||||
|
||||
changeLogo = logo => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue