mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
comment locking initial
This commit is contained in:
parent
6eafc227da
commit
59d544c5f4
10 changed files with 139 additions and 44 deletions
|
@ -102,6 +102,12 @@ export const nodeLock = (id: INode['id'], is_locked: boolean) => ({
|
|||
is_locked,
|
||||
});
|
||||
|
||||
export const nodeLockComment = (id: IComment['id'], is_locked: boolean) => ({
|
||||
type: NODE_ACTIONS.LOCK_COMMENT,
|
||||
id,
|
||||
is_locked,
|
||||
});
|
||||
|
||||
export const nodeSetEditor = (editor: INode) => ({
|
||||
type: NODE_ACTIONS.SET_EDITOR,
|
||||
editor,
|
||||
|
|
|
@ -24,6 +24,7 @@ export const NODE_ACTIONS = {
|
|||
LIKE: `${prefix}LIKE`,
|
||||
STAR: `${prefix}STAR`,
|
||||
LOCK: `${prefix}LOCK`,
|
||||
LOCK_COMMENT: `${prefix}LOCK_COMMENT`,
|
||||
CREATE: `${prefix}CREATE`,
|
||||
|
||||
SET_SAVE_ERRORS: `${prefix}SET_SAVE_ERRORS`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue