Skip to content

Commit

Permalink
Hide credit mode in course modes - EDLY-2634 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
taimoor-ahmed-1 authored Feb 23, 2021
1 parent 1b34647 commit a8cb793
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ecommerce/static/js/views/course_form_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ define([
this.stickit();
this._super();

if (!window.waffle.SWITCHES['enable_non_edly_cloud_options_switch']) {
const courseTypeCredit = this.$('#courseTypecredit');
courseTypeCredit.attr('disabled', true);
courseTypeCredit.parent().parent().addClass('hidden');
}

return this;
},

Expand Down

0 comments on commit a8cb793

Please sign in to comment.