mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added tag deletion interface
This commit is contained in:
parent
0a75feef8d
commit
04a7b28a53
16 changed files with 195 additions and 39 deletions
|
@ -86,6 +86,12 @@ export const nodeUpdateTags = (id: INode['id'], tags: string[]) => ({
|
|||
tags,
|
||||
});
|
||||
|
||||
export const nodeDeleteTag = (id: INode['id'], tagId: ITag['ID']) => ({
|
||||
type: NODE_ACTIONS.DELETE_TAG,
|
||||
id: id!,
|
||||
tagId,
|
||||
});
|
||||
|
||||
export const nodeSetTags = (tags: ITag[]) => ({
|
||||
type: NODE_ACTIONS.SET_TAGS,
|
||||
tags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue