Skip to content

Commit 3c28832

Browse files
committed
feat: Apply foss dd legacy rules
1 parent 6537d96 commit 3c28832

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

frontend/libs/portal/components/dialog/project/RequestFOSSDDV2.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const selectChannelAndSbom = async (versionKey: string, sbomKey: string) => {
125125
};
126126
127127
const isRdConfirmationMissing = computed(() => {
128-
if (!vehicle.value) {
128+
if (!vehicle.value || noFOSS.value) {
129129
return false;
130130
}
131131
@@ -370,7 +370,12 @@ const isEitherFutureFoss = computed(
370370
const canGenerateFoss = computed(() => {
371371
const fossOfficeConfirmationCondition = vehicle.value ? !isRdConfirmationMissing.value : true;
372372
const futureFossCondition = isEitherFutureFoss.value ? !isWarned.value : true;
373-
return !isDeniedOrUnasserted.value && fossOfficeConfirmationCondition && futureFossCondition && selectedProjects.value?.length > 0;
373+
return (
374+
!isDeniedOrUnasserted.value &&
375+
fossOfficeConfirmationCondition &&
376+
futureFossCondition &&
377+
selectedProjects.value?.length > 0
378+
);
374379
});
375380
376381
const isEnterpriseOrMobileOrOther = computed(() => {

frontend/libs/portal/i18n/locales/de.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,8 @@
14421442
"NO_FOSS_WARNING": "Sind Sie sicher, dass keinerlei FOSS-Komponenten verwendet wurden?",
14431443
"NO_FOSS_MESSAGE": "Sie haben die Option ausgewählt, dass in diesem Projekt keinerlei FOSS-Komponenten verwendet werden. Deaktivieren Sie die Option, wenn Sie eine SBOM-Lieferung auswählen möchten",
14441444
"MISSING_NO_FOSS_FLAG_AND_SBOM": "Für dieses Projekt ist keine SBOM ausgewählt, und es ist nicht als No-FOSS gekennzeichnet. Bitte wähle eine SBOM aus, um ein Disclosure Document zu generieren.",
1445+
"NO_PROJECT_NO_FOSS": "Ihre Auswahl enthält ein Projekt ohne ausgewählte SBOM, wofür eine \"Kein FOSS\" Offenlegung erzeugt wird. Wollen Sie fortfahren?",
1446+
"NO_FOSS_DISABLED_TOOLTIP": "Bitte ändern Sie die Projekteinstellungen, um diese Option zu ändern.",
14451447
"WARNING_MISSING_DEPT": "Abteilungszuweisung ungültig",
14461448
"COL_USER_ACCESS_SCOPE": "Zugriffsbereich",
14471449
"USER_ACCESS_SCOPE": "Zugriffsbereich",

frontend/libs/portal/i18n/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,6 +1426,8 @@
14261426
"NO_FOSS_WARNING": "Are you sure that no FOSS components are used?",
14271427
"NO_FOSS_MESSAGE": "You have selected the option that no FOSS components are used in this project. Unselect the option if you want to select a SBOM delivery",
14281428
"MISSING_NO_FOSS_FLAG_AND_SBOM": "This project is missing the No-FOSS flag, therefore you must select an SBOM to generate a Disclosure Document.",
1429+
"NO_PROJECT_NO_FOSS": "Your selection contains a project without any selected SBOM, which will result in a \"No FOSS\" declaration. Do you want to continue?",
1430+
"NO_FOSS_DISABLED_TOOLTIP": "Please change the project settings to change this option.",
14291431
"WARNING_MISSING_DEPT": "invalid department assigned",
14301432
"COL_USER_ACCESS_SCOPE": "Access Scope",
14311433
"USER_ACCESS_SCOPE": "Access Scope",

0 commit comments

Comments
 (0)