mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
Feature/gallery view (#6578)
* add gallery view, display images in grid layout * remove redundant code * clean up redundant code, improve responsive gallery * improve gaps in gallery
This commit is contained in:
@@ -112,9 +112,9 @@ class MetadataManagerAPI {
|
||||
return this.req.get(url);
|
||||
};
|
||||
|
||||
addView = (repoID, name) => {
|
||||
addView = (repoID, name, type = 'table') => {
|
||||
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/views/';
|
||||
const params = { name };
|
||||
const params = { name, type };
|
||||
return this._sendPostRequest(url, params, { headers: { 'Content-type': 'application/json' } });
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user