Skip to content

Commit 6c90c60

Browse files
committed
feat: add configurable missing SBOM text
1 parent 775bc5c commit 6c90c60

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

frontend/libs/portal/components/grids/GridSPDXList.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ export default defineComponent({
5151
type: Boolean,
5252
default: false,
5353
},
54+
missingSbomText: {
55+
type: String,
56+
default: '',
57+
},
5458
filterIsFOSS: {
5559
type: Boolean,
5660
default: false,
@@ -243,7 +247,7 @@ export default defineComponent({
243247
</th>
244248
</template>
245249
<template v-slot:[`item.spdxname`]="{item}">
246-
<span v-if="item.spdxname == ''">{{ t('NO_APPROVABLE_SPDX') }}</span>
250+
<span v-if="item.spdxname == ''">{{ missingSbomText !== '' ? missingSbomText : t('NO_APPROVABLE_SPDX') }}</span>
247251
<v-row class="align-center pl-2" v-else>
248252
<v-col cols="auto" class="pa-0">
249253
<v-icon v-if="showSbomExtras && item.isApprovable" color="primary" size="small" class="pb-1">mdi-star</v-icon>

frontend/libs/portal/components/projects/projectsDetail/TabProjectChildrenStatistics.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import {ApprovableInfo} from '@disclosure-portal/model/Approval';
99
import {useProjectStore} from '@disclosure-portal/stores/project.store';
1010
import projectService from '@disclosure-portal/services/projects';
1111
import {useIdleStore} from '@shared/stores/idle.store';
12+
import {useI18n} from 'vue-i18n';
1213
const projectStore = useProjectStore();
1314
15+
const {t} = useI18n();
1416
const approvableInfo = ref<ApprovableInfo>({} as ApprovableInfo);
1517
const search = ref<string | null>('');
1618
const dataAreLoaded = ref(false);
@@ -78,7 +80,8 @@ onMounted(async () => {
7880
showSbomExtras
7981
showSupplier
8082
showLoading
81-
:loading="!dataAreLoaded" />
83+
:loading="!dataAreLoaded"
84+
:missingSbomText="t('NO_SPDX')" />
8285
</div>
8386
</template>
8487
</TableLayout>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,7 @@
15601560
"APPROVALS_USE_PARENT_TEXT_POST": "der dazugehörigen Gruppe.",
15611561
"COL_DOCUMENT": "Dokument",
15621562
"NO_APPROVABLE_SPDX": "Keine freigegebene SBOM markiert. Bitte markieren Sie ein SBOM im SBOM-Lieferungen-Tab mit einem Stern.",
1563+
"NO_SPDX": "Keine SBOM-Lieferungen für das Projekt vorhanden.",
15631564
"BTN_REQUEST": "Anfordern",
15641565
"DOWNLOAD_INITIAL_DOCUMENT": "Das Disclosure Dokument für den ausgewählten Umfang wurde generiert und kann nun verwendet werden. ",
15651566
"TT_REQUEST_VEHICLE_PLATFORM": "\"product platform\" Projekte dürfen aktuell keinen Freigabe-Prozess starten",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,7 @@
15471547
"APPROVALS_USE_PARENT_TEXT_POST": "of the corresponding parent project.",
15481548
"COL_DOCUMENT": "Document",
15491549
"NO_APPROVABLE_SPDX": "No approvable SBOM set. Please mark an SBOM in SBOM Deliveries tab with a star.",
1550+
"NO_SPDX": "No SBOM present for the project.",
15501551
"BTN_REQUEST": "Request",
15511552
"DOWNLOAD_INITIAL_DOCUMENT": "The Disclosure Document for the selected scope has been generated and can now be used. ",
15521553
"TT_REQUEST_VEHICLE_PLATFORM": "approval requests for 'product platform' projects are currently disabled",

0 commit comments

Comments
 (0)