diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-04-24 13:09:24 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-04-26 09:28:14 +0200 |
commit | 4d60aff6ecfcd1d77962d4aa65eb3812fdd6eb72 (patch) | |
tree | 7faa8584b7d818c9979747c1e7ab5568fb120d42 | |
parent | 8f404c1f5640693c3fddd30fd36a3b97e725f2e1 (diff) | |
download | nextcloud-server-4d60aff6ecfcd1d77962d4aa65eb3812fdd6eb72.tar.gz nextcloud-server-4d60aff6ecfcd1d77962d4aa65eb3812fdd6eb72.zip |
Contactsmenu popover: show proper message when server throws error
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
-rw-r--r-- | core/js/jquery.contactsmenu.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/js/jquery.contactsmenu.js b/core/js/jquery.contactsmenu.js index 6e5f3228e3c..2c950fb35f6 100644 --- a/core/js/jquery.contactsmenu.js +++ b/core/js/jquery.contactsmenu.js @@ -78,9 +78,15 @@ if (actions.length === 0) { } + }, function() { + $list.find('ul').find('li').addClass('hidden'); + + var template = Handlebars.compile(ENTRY); + $list.find('ul').append(template({ + hyperlink: '#', + title: t('core', 'Error fetching contact actions') + })); }); - }).catch(function(reason) { - // TODO }); $(document).click(function(event) { |