@antscorp/antsomi-ui 1.3.5-beta.466 → 1.3.5-beta.468
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -221,7 +221,12 @@ export const AccountSharing = props => {
|
|
|
221
221
|
});
|
|
222
222
|
// const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
223
223
|
const onClickButtonLogout = () => {
|
|
224
|
+
// removeCookie(`uogs_${networkId}`, {
|
|
225
|
+
// secure: true,
|
|
226
|
+
// });
|
|
224
227
|
removeCookie(`uogs_${networkId}`, {
|
|
228
|
+
path: '/',
|
|
229
|
+
sameSite: 'none',
|
|
225
230
|
secure: true,
|
|
226
231
|
});
|
|
227
232
|
if (callbackLogout)
|
|
@@ -18,7 +18,6 @@ export const Toolbar = memo(() => {
|
|
|
18
18
|
const selectedRowKeys = useDataTableContext(store => { var _a; return (_a = store.table.rowSelection) === null || _a === void 0 ? void 0 : _a.selectedRowKeys; });
|
|
19
19
|
const isFilterActive = useDataTableContext(store => store.filter.isFilterActive);
|
|
20
20
|
const setFilter = useDataTableContext(store => store.setFilter);
|
|
21
|
-
console.count('toolbar render::');
|
|
22
21
|
// Refs
|
|
23
22
|
const { ref } = useOutsideClick(() => setFilter({
|
|
24
23
|
isFilterActive: false,
|
|
@@ -135,7 +135,6 @@ export const usePermission = () => {
|
|
|
135
135
|
: [];
|
|
136
136
|
}, [auth, env, hash, mappingChildrenMenu, pathname]);
|
|
137
137
|
useEffect(() => setLeftMenuState({ dashboardList }), [dashboardList, setLeftMenuState]);
|
|
138
|
-
console.log({ menuList, menuListPermission, mappingChildrenMenu });
|
|
139
138
|
useEffect(() => {
|
|
140
139
|
if (!isCustomized) {
|
|
141
140
|
const receivePostMessage = (event) => {
|
|
@@ -126,7 +126,6 @@ export const Layout = memo(props => {
|
|
|
126
126
|
const activeMenuCode = (_a = activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath[(activeItemPath === null || activeItemPath === void 0 ? void 0 : activeItemPath.length) - 1]) === null || _a === void 0 ? void 0 : _a.menu_item_code;
|
|
127
127
|
setActiveMenuCode(activeMenuCode);
|
|
128
128
|
onActiveMenuChange === null || onActiveMenuChange === void 0 ? void 0 : onActiveMenuChange(activeMenuCode);
|
|
129
|
-
console.log({ activeItemPath, flattenPermissionList });
|
|
130
129
|
const hasRole = hasSelectAccountPermission(activeItemPath, flattenPermissionList, menuListPermission);
|
|
131
130
|
setShowAccountSelection(hasRole);
|
|
132
131
|
}, [onActiveMenuChange]);
|