Skip to content

Commit

Permalink
Merge pull request #299 from amansinghbais/bopis/#177-centralizedoms
Browse files Browse the repository at this point in the history
Implemented: centralized oms instance navigator in settings page from dxp-components (#177)
  • Loading branch information
ravilodhi authored Oct 9, 2023
2 parents 01b91c0 + ca2494d commit 8eab417
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
22 changes: 1 addition & 21 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,7 @@
<h1>{{ $t('OMS') }}</h1>
</div>
<section>
<ion-card>
<ion-card-header>
<ion-card-subtitle>
{{ $t("OMS instance") }}
</ion-card-subtitle>
<ion-card-title>
{{ instanceUrl }}
</ion-card-title>
</ion-card-header>
<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" fill="clear">
{{ $t('Go to OMS') }}
<ion-icon slot="end" :icon="openOutline" />
</ion-button>
</ion-card>
<OmsInstanceNavigator />

<ion-card>
<ion-card-header>
Expand Down Expand Up @@ -307,7 +291,6 @@ export default defineComponent({
userProfile: 'user/getUserProfile',
currentFacility: 'user/getCurrentFacility',
currentEComStore: 'user/getCurrentEComStore',
instanceUrl: 'user/getInstanceUrl',
configurePicker: "user/configurePicker",
showShippingOrders: 'user/showShippingOrders',
showPackingSlip: 'user/showPackingSlip',
Expand Down Expand Up @@ -373,9 +356,6 @@ export default defineComponent({
setConfigurePickerPreference (ev: any){
this.store.dispatch('user/setUserPreference', { configurePicker: ev.detail.checked })
},
goToOms(){
window.open(this.instanceUrl.startsWith('http') ? this.instanceUrl.replace('api/', "") : `https://${this.instanceUrl}.hotwax.io/`, '_blank', 'noopener, noreferrer');
},
getDateTime(time: any) {
return DateTime.fromMillis(time).toLocaleString(DateTime.DATETIME_MED);
},
Expand Down
8 changes: 8 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const path = require('path')
require("@hotwax/app-version-info")
module.exports = {
pluginOptions: {
Expand All @@ -12,6 +13,13 @@ module.exports = {
enableInSFC: true
}
},
configureWebpack: {
resolve: {
alias: {
vue: path.resolve('./node_modules/vue')
}
}
},
runtimeCompiler: true,
transpileDependencies: ['@hotwax/dxp-components']
}

0 comments on commit 8eab417

Please sign in to comment.