Skip to content

Commit

Permalink
feat(component): add badge to show internal / external details
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Mar 22, 2024
1 parent 924ae77 commit d90d44d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@
"component_device": "Device",
"component_firmware": "Firmware",
"component_file": "File",
"component_source": "Component source",
"component_source_desc": "An indicator about whether a component is considered internal to an organization or external / public",
"component_classification": "Classification",
"component_classification_desc": "Classifies whether a component is considered internal or external to an organization",
"dates": "Dates",
"owasp_rr": "OWASP Risk Rating",
"owasp_rr_likelihood_score": "OWASP RR Likelihood score",
Expand Down
2 changes: 1 addition & 1 deletion src/views/portfolio/projects/Component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<b-badge
:variant="component.isInternal ? 'tab-total' : 'tab-info'"
v-b-tooltip.hover
:title="$t('message.component_source')"
:title="$t('message.component_classification_desc')"
>{{ component.isInternal ? 'INTERNAL' : 'EXTERNAL' }}</b-badge
>
<b-badge></b-badge>
Expand Down
4 changes: 2 additions & 2 deletions src/views/portfolio/projects/ComponentDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
:tooltip="this.$t('message.component_group_desc')"
:readonly="this.isNotPermitted(PERMISSIONS.PORTFOLIO_MANAGEMENT)"
/>
{{ $t('message.component_source') }}
{{ $t('message.component_classification') }}
<b-badge
:variant="component.isInternal ? 'tab-total' : 'tab-info'"
v-b-tooltip.hover
:title="$t('message.component_source_desc')"
:title="$t('message.component_classification_desc')"
>{{ component.isInternal ? 'INTERNAL' : 'EXTERNAL' }}</b-badge
>
<p></p>
Expand Down

0 comments on commit d90d44d

Please sign in to comment.