Skip to content

Commit

Permalink
Implemented: centralized oms instance navigator in settings page from…
Browse files Browse the repository at this point in the history
… dxp-components (hotwax#177)
  • Loading branch information
amansinghbais committed Sep 26, 2023
1 parent ad1b681 commit 11e7e8a
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 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 @@ -322,9 +306,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

0 comments on commit 11e7e8a

Please sign in to comment.