Contactsmenu popover: show proper message when server throws error
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
8f404c1f56
commit
4d60aff6ec
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue