diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-06 13:50:41 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-06 15:06:26 +0200 |
commit | 710d017eec7a97c1e58ef0cd4556555cf84b9b8f (patch) | |
tree | ebf8f42347da4c727926bd09774db61322c8bd42 /apps/files_external/js | |
parent | a47ef52ae2958a08ff3aca272c73973eb74d20ed (diff) | |
download | nextcloud-server-710d017eec7a97c1e58ef0cd4556555cf84b9b8f.tar.gz nextcloud-server-710d017eec7a97c1e58ef0cd4556555cf84b9b8f.zip |
Added more columns to ext storage list
Now using system mount and personal mount calls to get the relevant
mount points including backend information.
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/mountsfilelist.js | 10 |
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; }, |