Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #SB-23689 fix: DF>>Admin's ability to turn DF on/off on the UI #6602

Merged
merged 31 commits into from
Jun 1, 2021

Conversation

gouravmore
Copy link
Contributor

Issue #SB-23689 fix: DF>>Admin's ability to turn DF on/off on the UI

@@ -54,6 +54,19 @@
</div>
</div>
<div class="four wide column">
<div *ngIf="showDiscussionForum === 'Yes'">
<label>Enable discussions</label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this hard coded not a label?

if (this.batchUpdateForm.value.enableDiscussions === 'true') {
this.discussionService.createForum(this.createForumRequest).subscribe(resp => {
this.handleEnableDFChange('Yes');
this.toasterService.success('Enabled discussion forum successfully');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here also the label should be used like
this.toasterService.error(this.resourceService.messages.emsg.m0005);

}
}

handleEnableDFChange(inputType) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need a separate method?

@sonarcloud
Copy link

sonarcloud bot commented May 31, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

64.4% 64.4% Coverage
0.0% 0.0% Duplication

@gouravmore gouravmore requested a review from rajeevsathish May 31, 2021 13:58
@rajeevsathish rajeevsathish merged commit f0ffad4 into Sunbird-Ed:release-4.0.0 Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants