Added anonymous user id and extra params in program lti (#29429)

* fix: added anonymous user id and extra params in program lti

* refactor: updated flag name

* fix: fixed linter issues
This commit is contained in:
Ahtisham Shahid
2021-12-02 17:05:35 +05:00
committed by GitHub
parent ca867c105f
commit 00b53287d5
9 changed files with 41 additions and 25 deletions

View File

@@ -57,7 +57,7 @@ describe('Program Progress View', () => {
programRecordUrl: '/foo/bar',
industryPathways: data.industryPathways,
creditPathways: data.creditPathways,
programDiscussionEnabled: false
programTabViewEnabled: false
});
@@ -155,7 +155,7 @@ describe('Program Progress View', () => {
programRecordUrl: '/foo/bar',
industryPathways: [],
creditPathways: [],
programDiscussionEnabled: false
programTabViewEnabled: false
});
expect(emptyView.$('.program-credit-pathways .divider-heading')).toHaveLength(0);

View File

@@ -493,7 +493,7 @@ describe('Program Details Header View', () => {
destination_url: 'industry.com',
},
],
programDiscussionEnabled: false
programTabViewEnabled: false
};
const data = options.programData;

View File

@@ -29,7 +29,7 @@ class ProgramDetailsSidebarView extends Backbone.View {
this.industryPathways = options.industryPathways;
this.creditPathways = options.creditPathways;
this.programModel = options.model;
this.programDiscussionEnabled = options.programDiscussionEnabled;
this.programTabViewEnabled = options.programTabViewEnabled;
this.render();
}
@@ -40,7 +40,7 @@ class ProgramDetailsSidebarView extends Backbone.View {
programRecordUrl: this.programRecordUrl,
industryPathways: this.industryPathways,
creditPathways: this.creditPathways,
programDiscussionEnabled: this.programDiscussionEnabled
programTabViewEnabled: this.programTabViewEnabled
});
HtmlUtils.setHtml(this.$el, this.tpl(data));

View File

@@ -27,7 +27,7 @@ class ProgramDetailsView extends Backbone.View {
initialize(options) {
this.options = options;
if (this.options.programDiscussionEnabled) {
if (this.options.programTabViewEnabled) {
this.tpl = HtmlUtils.template(tabPageTpl);
} else {
this.tpl = HtmlUtils.template(pageTpl);
@@ -79,7 +79,7 @@ class ProgramDetailsView extends Backbone.View {
remainingCount,
completedCount,
completeProgramURL: buyButtonUrl,
programDiscussionEnabled: this.options.programDiscussionEnabled,
programTabViewEnabled: this.options.programTabViewEnabled,
industryPathways: this.options.industryPathways,
creditPathways: this.options.creditPathways,
discussionFragment: this.options.discussionFragment,
@@ -132,7 +132,7 @@ class ProgramDetailsView extends Backbone.View {
programRecordUrl: this.options.urls.program_record_url,
industryPathways: this.options.industryPathways,
creditPathways: this.options.creditPathways,
programDiscussionEnabled: this.options.programDiscussionEnabled,
programTabViewEnabled: this.options.programTabViewEnabled,
});
}