Skip to content

Commit

Permalink
Merge pull request #234 from DependencyTrack/port-component-propertie…
Browse files Browse the repository at this point in the history
…s-to-users-permissions
  • Loading branch information
nscuro authored Jan 31, 2025
2 parents a9315b5 + eb8932b commit 7d8570c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/portfolio/projects/ComponentDetailsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
variant="outline-primary"
v-b-modal.componentPropertiesModal
v-permission:or="[
PERMISSIONS.PORTFOLIO_MANAGEMENT,
PERMISSIONS.VIEW_PORTFOLIO,
PERMISSIONS.PORTFOLIO_MANAGEMENT_UPDATE,
]"
>{{ $t('message.properties') }}</b-button
Expand Down
4 changes: 4 additions & 0 deletions src/views/portfolio/projects/ComponentPropertiesModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
size="md"
variant="outline-danger"
@click="deleteProperty"
v-permission="PERMISSIONS.PORTFOLIO_MANAGEMENT"
:disabled="!hasRowsSelected"
>{{ $t('message.delete') }}</b-button
>
Expand All @@ -29,6 +30,7 @@
<b-button
size="md"
variant="primary"
v-permission="PERMISSIONS.PORTFOLIO_MANAGEMENT"
v-b-modal.componentCreatePropertyModal
>{{ $t('message.create_property') }}</b-button
>
Expand All @@ -39,9 +41,11 @@
<script>
import common from '../../../shared/common';
import xssFilters from 'xss-filters';
import permissionsMixin from '../../../mixins/permissionsMixin';
export default {
name: 'ComponentPropertiesModal',
mixins: [permissionsMixin],
props: {
uuid: String,
},
Expand Down

0 comments on commit 7d8570c

Please sign in to comment.