Skip to content

Commit

Permalink
Merge pull request #589 from sunbird-cb/nic-setup-errors
Browse files Browse the repository at this point in the history
Nic setup errors
  • Loading branch information
aAmitSengar authored Oct 14, 2022
2 parents ae7bf53 + 05eaf11 commit 19e6f9d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ export class AppTocBannerComponent implements OnInit, OnChanges, OnDestroy {
})
}


getMimeType(content: NsContent.IContent, identifier: string): NsContent.EMimeTypes {
if (content.identifier === identifier) {
return content.mimeType
Expand All @@ -292,7 +291,7 @@ export class AppTocBannerComponent implements OnInit, OnChanges, OnDestroy {
const getAllItemsPerChildren: any = (item: NsContent.IContent) => {
flatList.push(item)
if (item.children) {
return item.children.map((i: NsContent.IContent) => getAllItemsPerChildren(i));
return item.children.map((i: NsContent.IContent) => getAllItemsPerChildren(i))
}
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,13 @@

<div class="flex flex-col sm:flex-row flex-between width-expand pr-0 w-100 sm:pr-4 sm:w-auto">
<!-- deactivated as per NIC CEO requirement to access course wthout login -->
<!-- <a [routerLink]="isAllowed && !forPreview ? resourceLink.url : null"
<!-- <a [routerLink]="isAllowed && !forPreview && enrolled ? resourceLink.url : null"
[queryParams]="isAllowed ? resourceLink.queryParams : null"> -->

<a [routerLink]="isAllowed ? resourceLink.url : null"
[queryParams]="isAllowed ? resourceLink.queryParams : null">
<a class="disabled">

<!-- <a [routerLink]="isAllowed ? resourceLink.url : null"
[queryParams]="isAllowed ? resourceLink.queryParams : null"> -->
<div class="text-truncate cursor-pointer" (click)="viewChildren = !viewChildren; raiseTelemetry()">
<div class="flex flex-col sm:flex-row flex-wrap">
<p class="margin-remove text-truncate mat-subheading-1 flex-auto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ export class CurrentCompetencyCardComponent implements OnInit {
// this.selectedCompetency.emit(this.selectedCompList)
} else {
if (_.findIndex(this.compLocalService.currentComps.value, { id: competency.id }) !== -1) {
// if (_.findIndex(this.compLocalService.currentComps.value, { competencySelfAttestedLevel: complevel.id }) !== -1) {
// // this.compLocalService.removecurrentComps(compobj)
// }
// else {
if (_.findIndex(this.compLocalService.currentComps.value, { competencySelfAttestedLevel: complevel.id }) !== -1) {
this.compLocalService.removecurrentComps(compobj)
} else {
this.compLocalService.removecurrentComps(compobj)
this.compLocalService.addcurrentComps(compobj)
// }
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ export class TopicCardComponent implements OnInit {
if (top) {
if (typeof (top) !== 'object') {
const index = _.indexOf(this.topicService.getCurrentSelectedDesTopics, top)

if (index === -1) {
return false
}
return true
}
const index1 = _.findIndex(this.topicService.getCurrentSelectedSysTopics, { identifier: top.identifier })

if (index1 === -1) {
return false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ a.hint_span {
color: rgba($color: #000000, $alpha: .4);
}

.mat-subheading-1{
margin-left: 10px;
}
// .mat-subheading-1{
// margin-left: 10px;
// }

.left-input-div {
width: 74%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,8 @@ export class PracticeComponent implements OnInit, OnChanges, OnDestroy {
// debugger
// console.log(this.questionAnswerHash, '+++++')
if (question.questionType && question.questionType === 'mtf') {
const mTfval=this.quizSvc.mtfSrc.getValue()
mTfval[question.questionId]= {
const mTfval = this.quizSvc.mtfSrc.getValue()
mTfval[question.questionId] = {
source: _.map(optionId, 'source.innerText'),
target: _.map(optionId, 'target.innerText'),
}
Expand Down

0 comments on commit 19e6f9d

Please sign in to comment.