MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / onOk

Function onOk

frontend/src/hooks/useHeaderMenus.ts:139–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 title: t("TXT_CODE_d73c8510"),
138 content: t("TXT_CODE_6d9b9f22"),
139 async onOk() {
140 changeDesignMode(false);
141 await saveGlobalLayoutConfig();
142 notification.success({
143 placement: "top",
144 message: t("TXT_CODE_47c35915"),
145 description: t("TXT_CODE_e10c992a")
146 });
147 setTimeout(() => window.location.reload(), 400);
148 }
149 });
150 },
151 conditions: containerState.isDesignMode,

Callers

nothing calls this directly

Calls 5

changeDesignModeFunction · 0.85
saveGlobalLayoutConfigFunction · 0.85
resetGlobalLayoutConfigFunction · 0.85
executeFunction · 0.85
warningMethod · 0.80

Tested by

no test coverage detected