Skip to content

Commit 4fb4b71

Browse files
Add author field to components details dialog
Signed-off-by: Stephan Wolf <[email protected]>
1 parent 6bc55ef commit 4fb4b71

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/i18n/locales/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
"hashes": "Hashes",
238238
"component_name": "Component name",
239239
"component_namespace_group_vendor": "Namespace / group / vendor",
240+
"component_author": "Author",
240241
"coordinates": "Coordinates",
241242
"coordinates_version_tooltip": "You can use the comparison operators >, <, >=, <=, == and != to match specific versions or version ranges",
242243
"package_url_full": "Package URL (PURL)",
@@ -262,6 +263,7 @@
262263
"component_name_desc": "The name of the component as provided by the supplier",
263264
"component_version_desc": "The version of the component as provided by the supplier",
264265
"component_group_desc": "The suppliers higher-level namespace, group, or vendor identifier",
266+
"component_author_desc": "The author of the component",
265267
"component_package_url_desc": "A Valid Package URL is required for libraries and frameworks. PURL syntax: pkg:type/namespace/name@version?qualifiers#subpath",
266268
"component_cpe_desc": "The CPE v2.2 or v2.3 URI as provided by MITRE or NIST. All assets (applications, operating systems, and hardware) should have a CPE specified",
267269
"component_swid_tagid_desc": "The ISO/IEC 19770-2:2015 (SWID) tag ID provided by the software vendor",

src/views/portfolio/projects/ComponentDetailsModal.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
required="false" :label="$t('message.component_namespace_group_vendor')"
1919
:tooltip="this.$t('message.component_group_desc')"
2020
:readonly="this.isNotPermitted(PERMISSIONS.PORTFOLIO_MANAGEMENT)" />
21+
<b-input-group-form-input id="component-group-input" input-group-size="mb-3" type="text" v-model="component.author"
22+
required="false" :label="$t('message.component_author')"
23+
:tooltip="this.$t('message.component_author_desc')"
24+
:readonly="this.isNotPermitted(PERMISSIONS.PORTFOLIO_MANAGEMENT)" />
2125
<b-input-group-form-input id="component-purl-input" input-group-size="mb-3" type="text" v-model="component.purl"
2226
required="false" :label="$t('message.package_url_full')"
2327
:tooltip="this.$t('message.component_package_url_desc')"
@@ -211,6 +215,7 @@
211215
name: this.component.name,
212216
version: this.component.version,
213217
group: this.component.group,
218+
author: this.component.author,
214219
description: this.component.description,
215220
license: this.selectedLicense,
216221
filename: this.component.filename,

0 commit comments

Comments
 (0)