Skip to content

Commit

Permalink
Merge pull request #318 from amansinghbais/#270
Browse files Browse the repository at this point in the history
Improved: added permission check over the 'Go To OMS' button (#270)
  • Loading branch information
ravilodhi authored Oct 14, 2024
2 parents be965ca + 3cc76f4 commit 6272cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DxpOmsInstanceNavigator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ion-card-content>
{{ $t('This is the name of the OMS you are connected to right now. Make sure that you are connected to the right instance before proceeding.') }}
</ion-card-content>
<ion-button @click="goToOms(token.value, oms)" fill="clear">
<ion-button @click="goToOms(token.value, oms)" fill="clear" :disabled="!appContext.hasPermission(appContext.Actions.APP_COMMERCE_VIEW)">
{{ $t('Go to OMS') }}
<ion-icon slot="end" :icon="openOutline" />
</ion-button>
Expand All @@ -32,6 +32,7 @@ import { goToOms } from '../utils';
import { openOutline } from 'ionicons/icons'
import { computed } from 'vue';
import { useAuthStore } from "../store/auth";
import { appContext } from "src";
const authStore = useAuthStore();
Expand Down

0 comments on commit 6272cb8

Please sign in to comment.