summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue b/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue
index d9d65912..9f60d2ba 100644
--- a/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue
+++ b/src/views/SecurityAndAccess/Certificates/ModalGenerateCsr.vue
@@ -366,7 +366,6 @@ import IconCheckmark from '@carbon/icons-vue/es/checkmark/20';
import { required, requiredIf } from 'vuelidate/lib/validators';
import { COUNTRY_LIST } from './CsrCountryCodes';
-import { CERTIFICATE_TYPES } from '@/store/modules/SecurityAndAccess/CertificatesStore';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import VuelidateMixin from '@/components/Mixins/VuelidateMixin.js';
@@ -391,14 +390,6 @@ export default {
keyCurveId: null,
keyBitLength: null,
},
- certificateOptions: CERTIFICATE_TYPES.reduce((arr, cert) => {
- if (cert.type === 'TrustStore Certificate') return arr;
- arr.push({
- text: cert.label,
- value: cert.type,
- });
- return arr;
- }, []),
countryOptions: COUNTRY_LIST.map((country) => ({
text: country.label,
value: country.code,
@@ -410,6 +401,21 @@ export default {
csrStringCopied: false,
};
},
+ computed: {
+ certificateTypes() {
+ return this.$store.getters['certificates/certificateTypes'];
+ },
+ certificateOptions() {
+ return this.certificateTypes.reduce((arr, cert) => {
+ if (cert.type === 'TrustStore Certificate') return arr;
+ arr.push({
+ text: cert.label,
+ value: cert.type,
+ });
+ return arr;
+ }, []);
+ },
+ },
validations: {
form: {
certificateType: { required },