Skip to content

Commit

Permalink
Removing support for configuring SPDX from frontend - DependencyTrack…
Browse files Browse the repository at this point in the history
  • Loading branch information
stevespringett committed May 30, 2021
1 parent e8c38a1 commit e17f910
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/views/administration/configuration/BomFormats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<div>
<c-switch color="primary" v-model="isCycloneDXEnabled" label v-bind="labelIcon" />{{$t('admin.enable_bom_cyclonedx')}}
</div>
<div>
<c-switch color="primary" v-model="isSPDXEnabled" label v-bind="labelIcon" />{{$t('admin.enable_bom_spdx')}}
</div>
</b-card-body>
<b-card-footer>
<b-button variant="outline-primary" class="px-4" @click="saveChanges">{{ $t('message.update') }}</b-button>
Expand All @@ -30,15 +27,13 @@
},
data() {
return {
isCycloneDXEnabled: false,
isSPDXEnabled: false
isCycloneDXEnabled: false
}
},
methods: {
saveChanges: function() {
this.updateConfigProperties([
{groupName: 'artifact', propertyName: 'cyclonedx.enabled', propertyValue: this.isCycloneDXEnabled},
{groupName: 'artifact', propertyName: 'spdx.enabled', propertyValue: this.isSPDXEnabled}
{groupName: 'artifact', propertyName: 'cyclonedx.enabled', propertyValue: this.isCycloneDXEnabled}
]);
}
},
Expand All @@ -51,8 +46,6 @@
switch (item.propertyName) {
case "cyclonedx.enabled":
this.isCycloneDXEnabled = enabled; break;
case "spdx.enabled":
this.isSPDXEnabled = enabled; break;
}
}
});
Expand Down

0 comments on commit e17f910

Please sign in to comment.