Skip to content

Commit

Permalink
Implemented: used dxp state to get oms (instance url) (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskar345 committed Sep 19, 2023
1 parent f0bdfde commit b1921ac
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/components/MenuFooterNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ion-toolbar>
<ion-item lines="none">
<ion-label class="ion-text-wrap">
<p class="overline">{{ appUserState.instanceUrl }}</p>
<p class="overline">{{ instanceUrl }}</p>
</ion-label>
<ion-note slot="end">{{ appUserState.userProfile?.userTimeZone }}</ion-note>
</ion-item>
Expand Down Expand Up @@ -38,17 +38,18 @@

<script setup lang="ts">
import { IonFooter, IonItem, IonLabel, IonNote, IonSelect, IonSelectOption, IonToolbar } from '@ionic/vue';
import { appContext } from "../index";
import { appContext, useAuthStore } from "../index";
import { computed } from 'vue';
const store = appContext.config.globalProperties.$store;
const authStore = useAuthStore();
const appState = appContext.config.globalProperties.$store;
const instanceUrl = authStore.getOms;
const appUserState = computed(() => {
return {
instanceUrl: store.getters['user/getInstanceUrl'],
userProfile: store.getters['user/getUserProfile'],
currentEComStore: store.getters['user/getCurrentEComStore'],
shopifyConfigs: store.getters['user/getShopifyConfigs'],
currentShopifyConfig: store.getters['user/getCurrentShopifyConfig']
userProfile: appState.getters['user/getUserProfile'],
currentEComStore: appState.getters['user/getCurrentEComStore'],
shopifyConfigs: appState.getters['user/getShopifyConfigs'],
currentShopifyConfig: appState.getters['user/getCurrentShopifyConfig']
}
});
Expand Down

0 comments on commit b1921ac

Please sign in to comment.