diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 9e5093dd2..09edd7a0c 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -34,23 +34,7 @@

{{ $t('OMS') }}

- - - - {{ $t("OMS instance") }} - - - {{ instanceUrl }} - - - - {{ $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.') }} - - - {{ $t('Go to OMS') }} - - - + @@ -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', @@ -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); }, diff --git a/vue.config.js b/vue.config.js index 34823164b..d6c807fda 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,3 +1,4 @@ +const path = require('path') require("@hotwax/app-version-info") module.exports = { pluginOptions: { @@ -12,6 +13,13 @@ module.exports = { enableInSFC: true } }, + configureWebpack: { + resolve: { + alias: { + vue: path.resolve('./node_modules/vue') + } + } + }, runtimeCompiler: true, transpileDependencies: ['@hotwax/dxp-components'] }