summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js/settings.js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-09 14:19:15 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-08-17 10:40:59 +0200
commit644770c950c73bf23b818a9e7ba71d3a739aad0b (patch)
tree1a67fea576222923569363d8f9e04bb5749b33e3 /apps/files_external/js/settings.js
parentff89354588252340cd76a0b135e30fcb4fab7b30 (diff)
downloadnextcloud-server-644770c950c73bf23b818a9e7ba71d3a739aad0b.tar.gz
nextcloud-server-644770c950c73bf23b818a9e7ba71d3a739aad0b.zip
hide files external in personal settings if it's empty
Diffstat (limited to 'apps/files_external/js/settings.js')
-rw-r--r--apps/files_external/js/settings.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index fc6edefc648..da3e2397b7e 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -945,6 +945,11 @@ MountConfigListView.prototype = _.extend({
$tr.find('.configuration').text(t('files_external', 'Admin defined'));
}
});
+ var mainForm = $('#files_external');
+ if (result.length === 0 && mainForm.attr('data-can-create') === 'false') {
+ mainForm.hide();
+ $('a[href="#external-storage"]').parent().hide();
+ }
onCompletion.resolve();
}
});