Skip to content

Commit d08e828

Browse files
authored
Merge pull request #4478 from cisagov/feat/CSET-3026
Remove boolean for cmmc draft conversion
2 parents 0fe288f + c1ac488 commit d08e828

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

CSETWebNg/src/app/assessment/prepare/assessment-info/assessment-config-iod/assessment-config-iod.component.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ export class AssessmentConfigIodComponent implements OnInit {
4141

4242
this.getAssessmentDetail();
4343

44-
if (this.configSvc.config.debug.showCmmcConversion ?? false) {
45-
this.assessSvc.getAssessmentDetail().subscribe((data: AssessmentDetail) => {
46-
if (data.maturityModel?.modelName == "CMMC2") {
47-
this.showUpgrade = true;
48-
this.targetModel = "CMMC2F"
49-
}
50-
})
51-
};
44+
this.assessSvc.getAssessmentDetail().subscribe((data: AssessmentDetail) => {
45+
if (data.maturityModel?.modelName == "CMMC2") {
46+
this.showUpgrade = true;
47+
this.targetModel = "CMMC2F"
48+
}
49+
})
50+
5251

5352
}
5453

CSETWebNg/src/app/assessment/prepare/assessment-info/assessment-info.component.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ import { ACETService } from '../../../services/acet.service';
3030
import { AssessmentDetail } from '../../../models/assessment-info.model';
3131

3232
@Component({
33-
selector: 'app-assessment-info',
34-
templateUrl: './assessment-info.component.html',
35-
// eslint-disable-next-line
36-
host: { class: 'd-flex flex-column flex-11a' },
37-
standalone: false
33+
selector: 'app-assessment-info',
34+
templateUrl: './assessment-info.component.html',
35+
// eslint-disable-next-line
36+
host: { class: 'd-flex flex-column flex-11a' },
37+
standalone: false
3838
})
3939
export class AssessmentInfoComponent implements OnInit {
4040

@@ -50,13 +50,13 @@ export class AssessmentInfoComponent implements OnInit {
5050
) { }
5151

5252
ngOnInit(): void {
53-
if (this.configSvc.config.debug.showCmmcConversion ?? false) {
54-
this.assessSvc.getAssessmentDetail().subscribe((data: AssessmentDetail) => {
55-
if (data.maturityModel?.modelName == "CMMC2") {
56-
this.showUpgrade = true;
57-
this.targetModel = "CMMC2F"
58-
}
59-
});
60-
}
53+
54+
this.assessSvc.getAssessmentDetail().subscribe((data: AssessmentDetail) => {
55+
if (data.maturityModel?.modelName == "CMMC2") {
56+
this.showUpgrade = true;
57+
this.targetModel = "CMMC2F"
58+
}
59+
});
60+
6161
}
6262
}

CSETWebNg/src/assets/settings/config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"NOTENODE": "Casing on config chain matters, the only item that should be changed here is the current ConfigChain value. Once that is changed everything else should be set",
3-
"currentConfigChain": ["CSET"],
3+
"currentConfigChain": [
4+
"CSET"
5+
],
46
"defaultLang": "en",
57
"isRunningAnonymous": false,
68
"app": {
@@ -28,7 +30,6 @@
2830
"msgServerNotAvailable": "The server is unavailable. Contact your system administrator.",
2931
"supplementalAutoloadInitialValue": false,
3032
"debug": {
31-
"showCmmcConversion": false,
3233
"showBuildTime": false,
3334
"showQuestionAndRequirementIDs": false,
3435
"canDeleteCustomModules": true,
@@ -518,4 +519,4 @@
518519
"name": "日本語"
519520
}
520521
]
521-
}
522+
}

0 commit comments

Comments
 (0)