mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
node edit and like buttons + actions
This commit is contained in:
parent
f4c337b255
commit
249a9b368c
7 changed files with 117 additions and 28 deletions
|
@ -71,7 +71,12 @@ export const nodeCreate = (node_type: INode['type']) => ({
|
|||
});
|
||||
|
||||
export const nodeEdit = (id: INode['id']) => ({
|
||||
type: NODE_ACTIONS.CREATE,
|
||||
type: NODE_ACTIONS.EDIT,
|
||||
id,
|
||||
});
|
||||
|
||||
export const nodeLike = (id: INode['id']) => ({
|
||||
type: NODE_ACTIONS.LIKE,
|
||||
id,
|
||||
});
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ export const NODE_ACTIONS = {
|
|||
LOAD_NODE: `${prefix}LOAD_NODE`,
|
||||
|
||||
EDIT: `${prefix}EDIT`,
|
||||
LIKE: `${prefix}LIKE`,
|
||||
CREATE: `${prefix}CREATE`,
|
||||
|
||||
SET_SAVE_ERRORS: `${prefix}SET_SAVE_ERRORS`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue