Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Beauvais committed Jan 23, 2025
1 parent fbbb7f2 commit e372503
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/DigitalCredentials.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<script lang="ts">
import { Component, Mixins } from 'vue-property-decorator'
import { AllowableActions } from '@/enums'
import { AllowableActionsMixin, CommonMixin } from '@/mixins'
import { AllowableActions, Routes } from '@/enums'
import { AllowableActionsMixin } from '@/mixins'
@Component
export default class DigitalCredentials extends Mixins(AllowableActionsMixin, CommonMixin) {
export default class DigitalCredentials extends Mixins(AllowableActionsMixin) {
mounted (): void {
// if not allowed, go back to dashboard
if (!this.isAllowed(AllowableActions.DIGITAL_CREDENTIALS)) {
this.navigateToBusinessDashboard()
this.$router.push({ name: Routes.DASHBOARD })
}
}
}
Expand Down

0 comments on commit e372503

Please sign in to comment.