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 <safin@it-projects.info>
  • Loading branch information
Enigma228322 committed Jun 1, 2020
1 parent 37a8121 commit a5b9676
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,17 @@ 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');
if($('#buy-now').length){
$('#buy-now')[0].classList.add('hid');
}
}else{
$('#get-started')[0].classList.remove('hid');
if($('#buy-now').length){
$('#buy-now')[0].classList.remove('hid');
}
}
}

function check_users_input() {
Expand Down

0 comments on commit a5b9676

Please sign in to comment.