1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

feat: insert column (#6358)

* feat: insert column

* feat: adjust api

* feat: delete code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-18 17:40:53 +08:00
committed by GitHub
parent 5f42f71486
commit 71a04bf7b6
76 changed files with 2824 additions and 303 deletions

View File

@@ -101,7 +101,7 @@ class ExtraMetadataAttributesDialog extends Component {
let newValue = update[column.key];
let recordID = this.state.row._id;
if (this.isExist) {
metadataAPI.updateMetadataRecord(repoID, recordID, column.name, newValue).then(res => {
metadataAPI.modifyRecord(repoID, recordID, { [column.name]: newValue}).then(res => {
this.setState({ update: {}, row: res.data.row });
}).catch(error => {
const errorMsg = Utils.getErrorMsg(error);