fix: exit edit mode after saving layout
This commit is contained in:
@@ -158,6 +158,7 @@ export function Server({
|
|||||||
} as any);
|
} as any);
|
||||||
|
|
||||||
setHasUnsavedChanges(false);
|
setHasUnsavedChanges(false);
|
||||||
|
setIsEditMode(false);
|
||||||
toast.success(t("serverStats.layoutSaved"));
|
toast.success(t("serverStats.layoutSaved"));
|
||||||
window.dispatchEvent(new Event("ssh-hosts:changed"));
|
window.dispatchEvent(new Event("ssh-hosts:changed"));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user