summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Huynh <jimmy.huynh@etu.unistra.fr>2021-02-16 17:40:45 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commita3eed6507dff1cc0fa0ba804361a2428ac576580 (patch)
treed43490ed80d24cde88e217192b8974616b0f494b
parent660173c4282b816b9e3e52e11db90aff4eeb31ad (diff)
(+) adding UI when no contact has been found & icon user on contact
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r--l10n/fr.js4
-rw-r--r--l10n/fr.json4
-rw-r--r--templates/part.content.php8
3 files changed, 11 insertions, 5 deletions
diff --git a/l10n/fr.js b/l10n/fr.js
index df79ff9a3..7a0bcbfe9 100644
--- a/l10n/fr.js
+++ b/l10n/fr.js
@@ -125,7 +125,9 @@ OC.L10N.register(
"Report a bug" : "Signaler un bogue",
"Share on social media" : "Partage sur les réseaux sociaux",
"Contact name" : "Nom de contact",
- "Users": "Utilisateurs"
+ "Users": "Utilisateurs",
+ "No contact found.": "Aucun utilisateur trouvé."
+
},
"nplurals=2; plural=(n > 1);");
diff --git a/l10n/fr.json b/l10n/fr.json
index bc6894149..24669d217 100644
--- a/l10n/fr.json
+++ b/l10n/fr.json
@@ -123,7 +123,9 @@
"Report a bug" : "Signaler un bogue",
"Share on social media" : "Partage sur les réseaux sociaux",
"Contact name" : "Nom de contact",
- "Users": "Utilisateurs"
+ "Users": "Utilisateurs",
+ "No contact found.": "Aucun contact trouvé."
+
},"pluralForm" :"nplurals=2; plural=(n > 1);"
} \ No newline at end of file
diff --git a/templates/part.content.php b/templates/part.content.php
index f0e8683bb..98adba029 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -123,10 +123,12 @@
<div style="margin-bottom: 1em" ng-class="{'icon-loading-small': App.loading.isLoading('user') }">
</div>
- <div class="row">
-
+ <div style="margin-left: 1em"
+ ng-if="!(Share.userList.length > 0) && nameQuery && !App.loading.isLoading('user')">
+ <?php p($l->t('No contact found.')) ?>
+ </div>
<a
- class="icon-contacts-dark pr-3"
+ class="icon-category-installed pr-3"
ng-repeat="user in Share.userList"
ng-click="Share.shareItem(item.id, user.value.shareWith)">
{{ user.value.shareWith }}