1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

fix getParentDectionaryUrl func (#2669)

This commit is contained in:
C_Q
2018-12-19 16:07:56 +08:00
committed by Daniel Pan
parent 2dd25b2ae7
commit 3bbb44602b
7 changed files with 34 additions and 15 deletions

View File

@@ -302,12 +302,26 @@ export const Utils = {
return title;
},
sharePerms: {
'rw': gettext("Read-Write"),
'r': gettext("Read-Only"),
'admin': gettext("Admin"),
'cloud-edit': gettext("Preview-Edit-on-Cloud"),
'preview': gettext("Preview-on-Cloud")
sharePerms: function(permission) {
var title;
switch(permission) {
case 'rw':
title = gettext("Read-Write");
break;
case 'r':
title = gettext("Read-Only");
break;
case 'admin':
title = gettext("Admin");
break;
case 'cloud-edit':
title = gettext("Preview-Edit-on-Cloud");
break;
case 'preview':
title = gettext("Preview-on-Cloud");
break;
}
return title;
},
formatSize: function(options) {