1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

feat: repalace api.getviews with api.getview when load view (#6388)

* feat: repalace api.getviews with api.getview when load view

* fix: bug

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-22 10:52:21 +08:00
committed by GitHub
parent 3b0cd4fcbe
commit 245965cbe6
4 changed files with 17 additions and 7 deletions

View File

@@ -76,6 +76,11 @@ class Context {
return this.metadataAPI.listViews(repoID);
};
getView = (viewId) => {
const repoID = this.settings['repoID'];
return this.metadataAPI.getView(repoID, viewId);
};
canModifyCell = (column) => {
const { editable } = column;
if (!editable) return false;