Skip to content

Commit 3340ad5

Browse files
committed
added notification on fetching
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
1 parent e468e0a commit 3340ad5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

controller/translationcontroller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ public function getLanguageStrings() {
145145
'use.icon' => $this->trans->t('Use this icon'),
146146
'use.icon.delete' => $this->trans->t('Delete current icon'),
147147
'use.icon.refresh' => $this->trans->t('Get icon from page'),
148+
'use.icon.refresh.trying' => $this->trans->t('This may take a few seconds...'),
148149
'use.icon.refresh.error' => $this->trans->t('There was an error fetching the icon!'),
149150
'selected.icon' => $this->trans->t('Selected icon'),
150151

js/app/directives/iconpicker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
};
117117

118118
scope.refreshUrlIcon = function(){
119+
NotificationService.showNotification($translate.instant('use.icon.refresh.trying'), 5000);
119120
var queryUrl = OC.generateUrl('apps/passman/api/v2/geticon/'+btoa(scope.credential.url));
120121
$http.get(queryUrl).then(function (response) {
121122
if(typeof response.data.content !== 'undefined'){

0 commit comments

Comments
 (0)