1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00

ADD: dtable-share-link-ui & GET DELETE apis about dtable-share-link (#4117)

* ADD: dtable-share-link-ui
ADD: GET DELETE apis about dtable-share-link

* ADD: dtable_from_link_view & dtable_file_link_view_react.html

* MOD: some error_msgs and rename dtable_share_link_view and move dtable_share_link_view's url to dtable's urls

* FIX: dtableShareLinks' is_expired
This commit is contained in:
Alex Happy
2019-09-27 15:56:31 +08:00
committed by Daniel Pan
parent 702652d63e
commit c34969ce4b
13 changed files with 620 additions and 11 deletions

View File

@@ -575,6 +575,23 @@ export const Utils = {
}
},
getDTableShareLinkPermissionObject: function(permission) {
switch (permission) {
case 'read-only':
return {
value: permission,
text: 'read-only',
permission: 'r'
};
case 'read-write':
return {
value: permission,
text: 'read-write',
permission: 'rw'
};
}
},
formatSize: function(options) {
/*
* param: {bytes, precision}