- updated bando form;
This commit is contained in:
@@ -4,7 +4,7 @@ import { isEmpty, isNil } from 'ramda';
|
||||
import { klona } from 'klona';
|
||||
|
||||
// store
|
||||
import { storeSet } from '../../store';
|
||||
import { storeSet, storeGet } from '../../store';
|
||||
|
||||
// service
|
||||
import UserService from '../../service/user-service';
|
||||
@@ -76,9 +76,18 @@ const Users = () => {
|
||||
|
||||
const createUserCallback = (data) => {
|
||||
if (data.status === 'SUCCESS') {
|
||||
|
||||
const users = storeGet.main.users();
|
||||
storeSet.main.users([data.data.user, ...users]);
|
||||
if (toast.current) {
|
||||
toast.current.show({
|
||||
severity: 'success',
|
||||
summary: '',
|
||||
detail: data.message
|
||||
});
|
||||
}
|
||||
}
|
||||
setLoading(false);
|
||||
hideEditDialog();
|
||||
}
|
||||
|
||||
const errCreateUserCallback = (data) => {
|
||||
|
||||
Reference in New Issue
Block a user