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