1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

feat: tags keydown support(ctrl+c, delete, drag) (#7107)

* feat: tags keydown support(ctrl+c, delete, drag)

* feat: optimize code

* feat: optimize code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-11-26 17:45:58 +08:00
committed by GitHub
parent 4aa91aebc6
commit b083ecad29
22 changed files with 192 additions and 168 deletions

View File

@@ -259,14 +259,9 @@ class Context {
};
// file tag
addFileTags = (recordId, tagIds) => {
updateFileTags = (data) => {
const repoID = this.settings['repoID'];
return this.tagsAPI.addFileTags(repoID, recordId, tagIds);
};
updateFileTags = (recordId, tagIds) => {
const repoID = this.settings['repoID'];
return this.tagsAPI.updateFileTags(repoID, recordId, tagIds);
return this.tagsAPI.updateFileTags(repoID, data);
};
}