Skip to content

Commit

Permalink
Merge pull request #655 from mge-mm/dependency-track-1732
Browse files Browse the repository at this point in the history
Project cloning: cloning Policy Violations and ViolatationAnalysis
  • Loading branch information
nscuro authored Jan 15, 2024
2 parents 68486df + bb0919f commit 52be41e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"include_services": "Include services",
"include_audit_history": "Include audit history",
"include_acl": "Include access control list",
"include_policy_violations": "Include Policy Violations",
"project_cloning_in_progress": "The project is being created with the cloning options specified",
"vulnerability": "Vulnerability",
"analysis": "Analysis",
Expand Down
10 changes: 8 additions & 2 deletions src/views/portfolio/projects/ProjectAddVersionModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<b-form-checkbox id="checkbox-6" v-model="includeACL" name="checkbox-6" switch
value="true" unchecked-value="false"> {{ $t('message.include_acl') }}</b-form-checkbox>

<b-form-checkbox id="checkbox-7" v-model="includePolicyViolations" name="checkbox-7" switch
value="true" unchecked-value="false"> {{ $t('message.include_policy_violations') }}</b-form-checkbox>

<template v-slot:modal-footer="{ cancel }">
<b-button size="md" variant="secondary" @click="cancel()">{{ $t('message.cancel') }}</b-button>
<b-button size="md" variant="primary" @click="createVersion()">{{ $t('message.create') }}</b-button>
Expand All @@ -47,7 +50,8 @@
includeComponents: true,
includeServices: true,
includeAuditHistory: true,
includeACL: true
includeACL: true,
includePolicyViolations: true
}
},
methods: {
Expand All @@ -61,7 +65,8 @@
includeComponents: this.includeComponents,
includeServices: this.includeServices,
includeAuditHistory: this.includeAuditHistory,
includeACL: this.includeACL
includeACL: this.includeACL,
includePolicyViolations: this.includePolicyViolations
}).then((response) => {
this.$root.$emit('bv::hide::modal', 'projectAddVersionModal');
this.$toastr.s(this.$t('message.project_cloning_in_progress'));
Expand All @@ -77,6 +82,7 @@
this.includeServices = true;
this.includeAuditHistory = true;
this.includeACL = true;
this.includePolicyViolations = true;
}
},
}
Expand Down

0 comments on commit 52be41e

Please sign in to comment.