summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-26 15:36:46 +0100
committerGitHub <noreply@github.com>2018-02-26 15:36:46 +0100
commit07a6821ab2558da3abec0a8443a663234e575a23 (patch)
tree4496b83717541aefbcca9ce7f8804f5b5f2ddbcf /apps
parent4d380d21b55f0f8928014b9212f3ae727f6bfcc9 (diff)
parentfdfa934078384bb813d5efcde65e63119cba7c02 (diff)
downloadnextcloud-server-07a6821ab2558da3abec0a8443a663234e575a23.tar.gz
nextcloud-server-07a6821ab2558da3abec0a8443a663234e575a23.zip
Merge pull request #8511 from nextcloud/ext-storage-error-warning-fix
Ext storage error warning fix
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/js/settings.js1
-rw-r--r--apps/files_external/templates/list.php3
-rw-r--r--apps/files_external/templates/settings.php5
3 files changed, 7 insertions, 2 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index cb9b7ad6822..12ad285c52b 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -960,6 +960,7 @@ MountConfigListView.prototype = _.extend({
if (result.length === 0 && mainForm.attr('data-can-create') === 'false') {
mainForm.hide();
$('a[href="#external-storage"]').parent().hide();
+ $('#emptycontent').show();
}
onCompletion.resolve();
}
diff --git a/apps/files_external/templates/list.php b/apps/files_external/templates/list.php
index d006514bcde..ed13ed83701 100644
--- a/apps/files_external/templates/list.php
+++ b/apps/files_external/templates/list.php
@@ -6,8 +6,7 @@
<div id="emptycontent" class="hidden">
<div class="icon-external"></div>
- <h2><?php p($l->t('No external storage configured')); ?></h2>
- <p><a href="<?php p(link_to('', 'index.php/settings/personal#files_external' )); ?>"><?php p($l->t('You can add external storages in the personal settings')); ?></a></p>
+ <h2><?php p($l->t('No external storage configured or you don\'t have the permission to configure them')); ?></h2>
</div>
<input type="hidden" name="dir" value="" id="dir">
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index 237985bfd0f..11b3451c32e 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -87,6 +87,11 @@
}
?>
+<div id="emptycontent" class="hidden">
+ <div class="icon-external"></div>
+ <h2><?php p($l->t('No external storage configured or you don\'t have the permission to configure them')); ?></h2>
+</div>
+
<form data-can-create="<?php echo $canCreateMounts?'true':'false' ?>" id="files_external" class="section" data-encryption-enabled="<?php echo $_['encryptionEnabled']?'true': 'false'; ?>">
<h2 data-anchor-name="external-storage"><?php p($l->t('External storages')); ?></h2>
<?php if (isset($_['dependencies']) and ($_['dependencies'] !== '') and $canCreateMounts) print_unescaped(''.$_['dependencies'].''); ?>