@antscorp/antsomi-ui 1.3.5-beta.463 → 1.3.5-beta.465
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,12 +221,14 @@ 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}
|
|
224
|
+
removeCookie(`uogs_${networkId}`, {
|
|
225
|
+
secure: true,
|
|
226
|
+
});
|
|
225
227
|
if (callbackLogout)
|
|
226
228
|
callbackLogout();
|
|
227
229
|
setTimeout(() => {
|
|
228
230
|
window.location.href = urlLogout;
|
|
229
|
-
},
|
|
231
|
+
}, 1000);
|
|
230
232
|
};
|
|
231
233
|
function urlDomain(data) {
|
|
232
234
|
const a = document.createElement('a');
|
|
@@ -4,6 +4,10 @@ export declare const COLUMN_API_TYPE: {
|
|
|
4
4
|
UPDATE_MODIFY_COLUMN: string;
|
|
5
5
|
ADD_MODIFY_COLUMN: string;
|
|
6
6
|
};
|
|
7
|
+
export declare const ACTION_TYPE: {
|
|
8
|
+
ADD_MODIFY_COLUMN: number;
|
|
9
|
+
UPDATE_MODIFY_COLUMN: number;
|
|
10
|
+
};
|
|
7
11
|
export declare const FILTER_API_TYPE: {
|
|
8
12
|
GET_SAVED_FILTER: string;
|
|
9
13
|
GET_LIST_FILTER: string;
|
|
@@ -4,6 +4,10 @@ export const COLUMN_API_TYPE = {
|
|
|
4
4
|
UPDATE_MODIFY_COLUMN: 'update-modify-column',
|
|
5
5
|
ADD_MODIFY_COLUMN: 'add-modify-column',
|
|
6
6
|
};
|
|
7
|
+
export const ACTION_TYPE = {
|
|
8
|
+
ADD_MODIFY_COLUMN: 1,
|
|
9
|
+
UPDATE_MODIFY_COLUMN: 2,
|
|
10
|
+
};
|
|
7
11
|
export const FILTER_API_TYPE = {
|
|
8
12
|
GET_SAVED_FILTER: 'get-saved-filter',
|
|
9
13
|
GET_LIST_FILTER: 'get-list-filter',
|
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
import axios from 'axios';
|
|
23
23
|
import { get } from 'lodash';
|
|
24
24
|
// Constants
|
|
25
|
-
import { COLUMN_API_TYPE, FILTER_API_TYPE } from '../../constants/dataTable';
|
|
25
|
+
import { ACTION_TYPE, COLUMN_API_TYPE, FILTER_API_TYPE } from '../../constants/dataTable';
|
|
26
26
|
import { mapResponseListingToGeneral } from '../../utils';
|
|
27
27
|
const { GET_COLUMNS, GET_LIST_MODIFY_COLUMN, UPDATE_MODIFY_COLUMN, ADD_MODIFY_COLUMN } = COLUMN_API_TYPE;
|
|
28
28
|
const { GET_SAVED_FILTER, GET_LIST_FILTER, SAVE_FILTER, UPDATE_FILTER } = FILTER_API_TYPE;
|
|
@@ -70,12 +70,13 @@ export const dataTableServices = {
|
|
|
70
70
|
}),
|
|
71
71
|
createModifyColumn: (_e) => __awaiter(void 0, [_e], void 0, function* ({ auth, data, }) {
|
|
72
72
|
try {
|
|
73
|
-
const _f = data || {}, { type = ADD_MODIFY_COLUMN } = _f, restOfData = __rest(_f, ["type"]);
|
|
73
|
+
const _f = data || {}, { type = ADD_MODIFY_COLUMN, actionType = ACTION_TYPE.ADD_MODIFY_COLUMN } = _f, restOfData = __rest(_f, ["type", "actionType"]);
|
|
74
74
|
const response = yield axios({
|
|
75
75
|
url: `${auth === null || auth === void 0 ? void 0 : auth.url}`,
|
|
76
76
|
method: 'POST',
|
|
77
77
|
params: Object.assign({}, mapAuth(auth)),
|
|
78
|
-
data: Object.assign(Object.assign({}, restOfData), { type
|
|
78
|
+
data: Object.assign(Object.assign({}, restOfData), { type,
|
|
79
|
+
actionType }),
|
|
79
80
|
});
|
|
80
81
|
return get(response, 'data.data', { status: 1 });
|
|
81
82
|
}
|