summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-17 21:45:19 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit299c3428e1769710467e19fa73173625088e177b (patch)
tree0a7661e7170332a649d60a32e547f48b4fe2e5bd /templates
parent0f6a0d790205580e14c11e19d0100ed3c400c89d (diff)
✨ Share dropdown: catch sharee api error, show msg
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 554382fd1..ff288631d 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -136,9 +136,13 @@
</form>
<div style="margin-left: 2em; font-size: 0.85em;"
- ng-if="!(Share.userList.length > 0) && nameQuery && !App.loading.isLoading('user')">
+ ng-if="Share.userList.length === 0 && nameQuery && !App.loading.isLoading('user') && !Share.searchUsersFailed">
<?php p($l->t('No users found')) ?>
</div>
+ <div style="margin-left: 2em; font-size: 0.85em;"
+ ng-if="Share.userList.length === 0 && Share.searchUsersFailed">
+ <?php p($l->t('Error while searching for users')) ?>
+ </div>
<a
ng-repeat="user in Share.userList"
class="icon-category-installed pr-3"