From a87d761fdbf345ada5dc93e0a686b08a0f5a0417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Ku=CC=88hn?= Date: Fri, 24 Nov 2017 08:33:01 +0100 Subject: [IMP] core: menu tip ux/ui improvement We would like to make the "no item found" screens more appealing. Before this commit, it shows a small help tip in the top-left corner of the screen, just below the "Create" button. With this commit, these help tips have been replaced by onboarding screens, which consist of a picture and some text below, both of which are horizontally centered. The texts have been slightly changed, so that they are shorter and clearer. Considered modules: (A) account, account_asset, account_budget, account_test, account_voucher, analytic (B) barcodes, base, base_automation, board (C) calendar, contacts, crm (D) delivery (E) event (F) fleet (G) gamification, google_drive (H) hr, hr_attendance, hr_contract, hr_expense, hr_gamification, hr_holidays, hr_payroll, hr_recruitment, hr_timesheet (I) im_livechat (L) l10n_fr_sale_closing, link_tracker, lunch (M) mail, maintenance, mass_mailing, membership, mrp (N) note (P) payment, point_of_sale, post_mercury, pos_restaurant, product, project, purchase, purchase_requisition (R) rating, repair, resource (S) sale, sale_timesheet, sales_team, stock, stock_account, stock_landed_costs, stock_picking_batch, survey (U) utm (W) web, website, website_blog, website_customer, website_event_track, website_forum, website_quote, website_sale, website_sale_digital, website_slides --- addons/web/static/src/js/views/graph/graph_renderer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/views/graph/graph_renderer.js') diff --git a/addons/web/static/src/js/views/graph/graph_renderer.js b/addons/web/static/src/js/views/graph/graph_renderer.js index 178d3ef3bd5..4d51f8786d0 100644 --- a/addons/web/static/src/js/views/graph/graph_renderer.js +++ b/addons/web/static/src/js/views/graph/graph_renderer.js @@ -55,9 +55,12 @@ return AbstractRenderer.extend({ * returning immediately, then wait a tiny interval before actually * displaying the data. * + * @override + * @private * @returns {Deferred} The _super deferred is actually resolved immediately */ _render: function () { + this.$el.toggleClass('o_view_nocontent_container', !this.state.data.length); if (this.to_remove) { nv.utils.offWindowResize(this.to_remove); } @@ -71,8 +74,7 @@ return AbstractRenderer.extend({ this.$el.empty(); this.$el.append(qweb.render('GraphView.error', { title: _t("No data to display"), - description: _t("No data available for this chart. " + - "Try to add some records, or make sure that " + + description: _t("Try to add some records, or make sure that " + "there is no active filter in the search bar."), })); } else { -- cgit v1.2.3