summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/mountsfilelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/js/mountsfilelist.js')
-rw-r--r--apps/files_external/js/mountsfilelist.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/files_external/js/mountsfilelist.js b/apps/files_external/js/mountsfilelist.js
index fffe994268f..95b596bca8d 100644
--- a/apps/files_external/js/mountsfilelist.js
+++ b/apps/files_external/js/mountsfilelist.js
@@ -29,8 +29,16 @@
_createRow: function(fileData) {
// TODO: hook earlier and render the whole row here
var $tr = OCA.Files.FileList.prototype._createRow.apply(this, arguments);
+ var $scopeColumn = $('<td></td>');
+ var $backendColumn = $('<td></td>');
+ var scopeText = t('files_external', 'Personal');
+ if (fileData.scope === 'system') {
+ scopeText = t('files_external', 'System');
+ }
$tr.find('.filesize,.date').remove();
- $tr.find('td.filename').after('<td></td>');
+ $scopeColumn.text(scopeText);
+ $backendColumn.text(fileData.backend);
+ $tr.find('td.filename').after($scopeColumn).after($backendColumn);
$tr.find('td.filename input:checkbox').remove();
return $tr;
},