|
@@ -46,7 +46,7 @@
|
|
};
|
|
};
|
|
|
|
|
|
const onUserCreated = async () => {
|
|
const onUserCreated = async () => {
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowCreateUserForm = false;
|
|
shouldShowCreateUserForm = false;
|
|
};
|
|
};
|
|
@@ -57,13 +57,13 @@
|
|
};
|
|
};
|
|
|
|
|
|
const onEditUserSuccess = async () => {
|
|
const onEditUserSuccess = async () => {
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowEditUserForm = false;
|
|
shouldShowEditUserForm = false;
|
|
};
|
|
};
|
|
|
|
|
|
const onEditPasswordSuccess = async () => {
|
|
const onEditPasswordSuccess = async () => {
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowEditUserForm = false;
|
|
shouldShowEditUserForm = false;
|
|
shouldShowInfoPanel = true;
|
|
shouldShowInfoPanel = true;
|
|
@@ -75,13 +75,13 @@
|
|
};
|
|
};
|
|
|
|
|
|
const onUserDeleteSuccess = async () => {
|
|
const onUserDeleteSuccess = async () => {
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowDeleteConfirmDialog = false;
|
|
shouldShowDeleteConfirmDialog = false;
|
|
};
|
|
};
|
|
|
|
|
|
const onUserDeleteFail = async () => {
|
|
const onUserDeleteFail = async () => {
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowDeleteConfirmDialog = false;
|
|
shouldShowDeleteConfirmDialog = false;
|
|
};
|
|
};
|
|
@@ -92,14 +92,14 @@
|
|
};
|
|
};
|
|
|
|
|
|
const onUserRestoreSuccess = async () => {
|
|
const onUserRestoreSuccess = async () => {
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowRestoreDialog = false;
|
|
shouldShowRestoreDialog = false;
|
|
};
|
|
};
|
|
|
|
|
|
const onUserRestoreFail = async () => {
|
|
const onUserRestoreFail = async () => {
|
|
// show fail dialog
|
|
// show fail dialog
|
|
- const getAllUsersRes = await api.userApi.getAllUsers(false);
|
|
|
|
|
|
+ const getAllUsersRes = await api.userApi.getAllUsers({ isAll: false });
|
|
allUsers = getAllUsersRes.data;
|
|
allUsers = getAllUsersRes.data;
|
|
shouldShowRestoreDialog = false;
|
|
shouldShowRestoreDialog = false;
|
|
};
|
|
};
|