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:
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user