Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shopify config info at menu footer(#2q9mut9) #220

Merged
merged 8 commits into from
Sep 1, 2022
13 changes: 11 additions & 2 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
<p class="overline">{{ instanceUrl }}</p>
{{ eComStore.storeName }}
</ion-label>
<ion-note slot="end">{{ userProfile?.userTimeZone }}</ion-note>
<div>
<ion-note slot="end">{{ userProfile?.userTimeZone }}</ion-note>
<ion-note slot="end">{{ currentShopifyConfigId }}</ion-note>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should put this as a p tag below the ion label instead of putting it in the ion note

</div>
</ion-item>
</ion-toolbar>
</ion-footer>
Expand Down Expand Up @@ -83,7 +86,8 @@ export default defineComponent({
currentFacility: 'user/getCurrentFacility',
eComStore: 'user/getCurrentEComStore',
instanceUrl: 'user/getInstanceUrl',
userProfile: 'user/getUserProfile'
userProfile: 'user/getUserProfile',
currentShopifyConfigId: 'user/getCurrentShopifyConfigId'
})
},
watch:{
Expand Down Expand Up @@ -177,4 +181,9 @@ ion-menu.ios ion-item.selected ion-icon {
ion-item.selected {
--color: var(--ion-color-secondary);
}
ion-item > div > ion-note:first-child {
display: block;
margin-bottom: var(--spacer-lg);
text-align: end;
}
</style>
7 changes: 4 additions & 3 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ion-item>
<!-- Select shopify config -->
<ion-item>
<ion-icon :icon="globeOutline" slot="start" />
<ion-icon :icon="pinOutline" slot="start" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use basket outline icon.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used basket outline icon

<ion-label>{{ $t("Shopify Config") }}</ion-label>
<ion-select interface="popover" :value="currentShopifyConfigId" @ionChange="setShopifyConfig($event)">
<ion-select-option v-for="shopifyConfig in shopifyConfigs" :key="shopifyConfig.shopifyConfigId" :value="shopifyConfig.shopifyConfigId" >{{ shopifyConfig.shopifyConfigName }}</ion-select-option>
Expand Down Expand Up @@ -50,7 +50,7 @@
<script lang="ts">
import { IonButton, IonContent, IonHeader,IonIcon, IonItem, IonLabel, IonMenuButton, IonPage, IonSelect, IonSelectOption, IonTitle, IonToolbar, modalController } from '@ionic/vue';
import { defineComponent } from 'vue';
import { codeWorkingOutline, ellipsisVertical, globeOutline, personCircleOutline, storefrontOutline, timeOutline} from 'ionicons/icons'
import { codeWorkingOutline, ellipsisVertical, globeOutline, personCircleOutline, storefrontOutline, timeOutline, pinOutline} from 'ionicons/icons'
import { mapGetters, useStore } from 'vuex';
import { useRouter } from 'vue-router';
import TimeZoneModal from '@/views/TimezoneModal.vue';
Expand Down Expand Up @@ -120,7 +120,8 @@ export default defineComponent({
storefrontOutline,
store,
timeOutline,
router
router,
pinOutline
}
}
});
Expand Down