Fix inability to close unsupported preset notif
This commit is contained in:
1 parent
cce85e48ed
commit
da01793ac5
1 file changed
+2
-2
+2
-2
@@ -323,7 +323,7 @@ export const component: ClosureComponent = (): Component => {
|
|||||||
return m(
|
return m(
|
||||||
"div",
|
"div",
|
||||||
{ style: "margin:20px" },
|
{ style: "margin:20px" },
|
||||||
"This UI only supports presets with a single 'provision' configuraiton. If this preset was originally created from the old UI (genieacs-gui), you must edit it there."
|
"This UI only supports presets with a single 'provision' configuration. If this preset was originally created from the old UI (genieacs-gui), you must edit it there."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return comp;
|
return comp;
|
||||||
@@ -331,7 +331,7 @@ export const component: ClosureComponent = (): Component => {
|
|||||||
overlay.open(
|
overlay.open(
|
||||||
cb,
|
cb,
|
||||||
() =>
|
() =>
|
||||||
!comp.state["current"]["modified"] ||
|
!(comp.state && comp.state["current"]["modified"]) ||
|
||||||
confirm("You have unsaved changes. Close anyway?")
|
confirm("You have unsaved changes. Close anyway?")
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user