diff --git a/ppr-ui/src/store/store.ts b/ppr-ui/src/store/store.ts index fd6ab5eb0..4b8ab5d6d 100644 --- a/ppr-ui/src/store/store.ts +++ b/ppr-ui/src/store/store.ts @@ -332,6 +332,9 @@ export const useStore = defineStore('assetsStore', () => { const hasMhrEnabled = computed(() => { return getUserProductSubscriptionsCodes.value.includes(ProductCode.MHR) && getFeatureFlag('mhr-ui-enabled') }) + const hasMhrReIssuePermitEnabled = computed(() => { + return getFeatureFlag('mhr-re-issue-permit-enabled') + }) const hasDrsEnabled = computed(() => { return isRoleStaffReg.value && getFeatureFlag('drs-integration-enabled') }) @@ -1554,6 +1557,7 @@ export const useStore = defineStore('assetsStore', () => { // PPR/MHR Enabled hasPprEnabled, hasMhrEnabled, + hasMhrReIssuePermitEnabled, // Document Record Service hasDrsEnabled, diff --git a/ppr-ui/src/utils/feature-flags.ts b/ppr-ui/src/utils/feature-flags.ts index c9697704c..b44b51135 100644 --- a/ppr-ui/src/utils/feature-flags.ts +++ b/ppr-ui/src/utils/feature-flags.ts @@ -22,6 +22,7 @@ export const defaultFlagSet: LDFlagSet = { 'mhr-cancel-transport-permit-enabled': false, 'mhr-user-access-enabled': false, 'mhr-history-enabled': false, + 'mhr-re-issue-permit-enabled': false, // Enables Create New and Extend Transport Permit: Staff Targeted for now 'drs-integration-enabled': false, // Enables connections to Documents Record Services 'sentry-enable': false, // by default, no sentry logs 'banner-text': '' // by default, there is no banner text diff --git a/ppr-ui/src/views/mhrInformation/MhrTransportPermit.vue b/ppr-ui/src/views/mhrInformation/MhrTransportPermit.vue index 983181cf8..47b6aab4f 100644 --- a/ppr-ui/src/views/mhrInformation/MhrTransportPermit.vue +++ b/ppr-ui/src/views/mhrInformation/MhrTransportPermit.vue @@ -67,7 +67,8 @@ @@ -148,7 +149,7 @@ @@ -505,6 +506,7 @@ const { getMhrInformation, getMhrInfoValidation, getMhrTransportPermit, + hasMhrReIssuePermitEnabled, getTransportPermitChangeAllowed } = storeToRefs(useStore()) const {