Skip to content

Commit

Permalink
Merge pull request #3665 from cisagov/feature/CSET-2506
Browse files Browse the repository at this point in the history
Add Config Behavior to Show / Hide CISA Assessor Workflow Switch
  • Loading branch information
randywoods authored Dec 7, 2023
2 parents ff08d96 + bdee6f7 commit f0179bd
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div class="mx-3 mt-2" *ngIf="message && message.message.length > 0">{{ message.message }}</div>
</div>

<div class="form-group d-flex align-items-center justify-content-between mt-4 mx-2">
<div *ngIf="showCisaAssessorWorkflowSwitch()" class="form-group d-flex align-items-center justify-content-between mt-4 mx-2">
<label for="csaToggle" class="font-weight-bold">CISA Assessor Workflow </label>
<div id="csaToggle" class="btn-group btn-group-toggle w-50 ml-2" data-toggle="buttons">
<label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class EnableProtectedComponent implements OnInit {
return (this.modulesList && this.modulesList.length > 0 && this.modulesList.every(m => m.unlocked));
}

showCisaAssessorWorkflowSwitch() {
return this.configSvc.behaviors.showCisaAssessorWorkflowSwitch;
}

/**
*
*/
Expand Down
3 changes: 2 additions & 1 deletion CSETWebNg/src/assets/settings/config.ACET.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"showExportOnReports": false,
"showFeedback": false,
"showDisclaimer": false,
"independentSuppGuidance": true
"independentSuppGuidance": true,
"showCisaAssessorWorkflowSwitch": false
},
"languageOptions": [
{ "value": "en", "name": "English" },
Expand Down
7 changes: 4 additions & 3 deletions CSETWebNg/src/assets/settings/config.CF.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
"showOrganizationName": true,
"showBusinessAgencyName": true,
"showCriticalService": true,
"allowDiagram":false,
"showPrivacyWarning":true,
"showTheUpgradeButton":true
"allowDiagram": false,
"showPrivacyWarning": true,
"showTheUpgradeButton": true,
"showCisaAssessorWorkflowSwitch": false
}
}

3 changes: 2 additions & 1 deletion CSETWebNg/src/assets/settings/config.CSET.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"showContacts": true,
"showOrganizationName": true,
"showBusinessAgencyName": true,
"showCriticalService": true
"showCriticalService": true,
"showCisaAssessorWorkflowSwitch": true
}
}

Expand Down
5 changes: 3 additions & 2 deletions CSETWebNg/src/assets/settings/config.IOD.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"showContacts": true,
"showOrganizationName": true,
"showBusinessAgencyName": true,
"showCriticalService": true
"showCriticalService": true,
"showCisaAssessorWorkflowSwitch": true
}
}
}
5 changes: 3 additions & 2 deletions CSETWebNg/src/assets/settings/config.ISE.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
"showExportOnReports": false,
"showFeedback": false,
"showDisclaimer": false,
"independentSuppGuidance": true
"independentSuppGuidance": true,
"showCisaAssessorWorkflowSwitch": false
},
"languageOptions": [
{ "value": "en", "name": "English" }
]
}
}
3 changes: 2 additions & 1 deletion CSETWebNg/src/assets/settings/config.RENEW.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"showOrganizationName": true,
"showBusinessAgencyName": true,
"showCriticalService": true,
"additionalUserGuides": []
"additionalUserGuides": [],
"showCisaAssessorWorkflowSwitch": false
}

}
3 changes: 2 additions & 1 deletion CSETWebNg/src/assets/settings/config.TSA.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"showOrganizationName": true,
"showBusinessAgencyName": true,
"showCriticalService": true,
"additionalUserGuides": ["TSA"]
"additionalUserGuides": ["TSA"],
"showCisaAssessorWorkflowSwitch": false
}

}
3 changes: 2 additions & 1 deletion CSETWebNg/src/assets/settings/config.TSAonline.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"showCompare": false,
"showEnableProtectedFeatures": false,
"showComments": false,
"showFeedback": false
"showFeedback": false,
"showCisaAssessorWorkflowSwitch": false
}
}
1 change: 1 addition & 0 deletions CSETWebNg/src/assets/settings/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"showComments": true,
"showFeedback": true,
"showEnableProtectedFeatures": true,
"showCisaAssessorWorkflowSwitch": true,
"showUpdateDiagramCsafVulnerabilitiesButton": false,
"showVulnerabilitiesDiagramInventoryTab": false,
"additionalUserGuides": []
Expand Down

0 comments on commit f0179bd

Please sign in to comment.