Skip to content

Commit

Permalink
💣 'Try trial' and 'Buy now' are hiding when no application is selected
Browse files Browse the repository at this point in the history
Signed-off-by: Vildan Safin <[email protected]>
  • Loading branch information
Enigma228322 committed Jun 1, 2020
1 parent 37a8121 commit 5db1372
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions saas_apps/static/src/js/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5db1372

Please sign in to comment.