[IMP] web_editor: display not found snippets template warning message
This commit is contained in:
@@ -193,6 +193,9 @@ var BuildingBlock = Widget.extend({
|
||||
return ajax.jsonRpc(url, 'call', {}).then(function (html) {
|
||||
self.compute_snippet_templates(html);
|
||||
self.trigger("snippets:ready");
|
||||
}, function () {
|
||||
self.$snippet.hide();
|
||||
console.warn('Snippets template not found:', url);
|
||||
});
|
||||
},
|
||||
compute_snippet_templates: function (html) {
|
||||
|
||||
Reference in New Issue
Block a user