Implement basic code for creating/updating a subuser
This commit is contained in:
parent
51c5cf4dbb
commit
a6f46d36ba
17 changed files with 347 additions and 322 deletions
|
@ -39,7 +39,7 @@ const subusers: ServerSubuserStore = {
|
|||
}),
|
||||
|
||||
appendSubuser: action((state, payload) => {
|
||||
state.data = [ ...state.data, payload ];
|
||||
state.data = [ ...state.data.filter(user => user.uuid !== payload.uuid), payload ];
|
||||
}),
|
||||
|
||||
getSubusers: thunk(async (actions, payload) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue