From 5db13724e4f8773f192a7ed5eed64fffd397be04 Mon Sep 17 00:00:00 2001 From: Vildan Safin Date: Mon, 1 Jun 2020 15:27:36 +0500 Subject: [PATCH] :bomb: 'Try trial' and 'Buy now' are hiding when no application is selected Signed-off-by: Vildan Safin --- saas_apps/static/src/js/apps.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/saas_apps/static/src/js/apps.js b/saas_apps/static/src/js/apps.js index fc84d6c03..c481d2b25 100644 --- a/saas_apps/static/src/js/apps.js +++ b/saas_apps/static/src/js/apps.js @@ -424,6 +424,13 @@ odoo.define('saas_apps.model', function (require) { $('#apps-qty').text(String(apps_in_basket)); $('#users-cnt-cost').text(String(users_price_period * $('#users').val())); $('#apps-cost').text(String(calc_apps_price())); + if(!apps_in_basket){ + $('#get-started')[0].classList.add('hid'); + $('#buy-now')[0].classList.add('hid'); + }else{ + $('#get-started')[0].classList.remove('hid'); + $('#buy-now')[0].classList.remove('hid'); + } } function check_users_input() {