Contactsmenu popover: show proper message when server throws error

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2017-04-24 13:09:24 +02:00
parent 8f404c1f56
commit 4d60aff6ec
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
1 changed files with 8 additions and 2 deletions

View File

@ -78,9 +78,15 @@
if (actions.length === 0) { 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) { $(document).click(function(event) {