[IMP] display Bookmark message when bookmark section empty

This commit is contained in:
Chintan Ambaliya 2018-03-20 15:07:32 +05:30
parent 29227b85ff
commit cef050984d
2 changed files with 7 additions and 4 deletions

View File

@ -119,10 +119,7 @@ var Apps = Widget.extend({
},
_clearSearch: function (ev) {
this.$el.find('.f_apps_search_input').val('');
this.$el.find('.f_apps_contents').html(QWeb.render('FlectraMenuContent', {
bookmark_menus: this.bookmarkMenus,
dashboard_apps: this.allApps.main_menu
}));
this.render();
},
_appsSearch: function (ev) {
var search_str = $(ev.currentTarget).val().trim().toLowerCase();

View File

@ -48,6 +48,12 @@
</a>
</t>
</t>
<t t-if="bookmark_menus and !bookmark_menus.length">
<h3 class="col-lg-offset-3 col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3 col-xs-12 text-center"
style="border: 3px solid #999999; padding: 10px; margin-top: 6px;">
Hello User, Click on <i class="fa fa-bookmark"></i> to Bookmark Menu
</h3>
</t>
</t>
<t t-name="AppsLauncher.Menus">