-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…izedoms Implemented: centralized OMS instance navigation component in dxp-components (#140)
- Loading branch information
Showing
3 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<ion-card> | ||
<ion-card-header> | ||
<ion-card-subtitle> | ||
{{ $t('OMS instance') }} | ||
</ion-card-subtitle> | ||
<ion-card-title> | ||
{{ authStore.getOms }} | ||
</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(token.value, oms)" fill="clear"> | ||
{{ $t('Go to OMS') }} | ||
<ion-icon slot="end" :icon="openOutline" /> | ||
</ion-button> | ||
</ion-card> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { | ||
IonButton, | ||
IonCard, | ||
IonCardContent, | ||
IonCardHeader, | ||
IonCardSubtitle, | ||
IonCardTitle, | ||
IonIcon | ||
} from '@ionic/vue'; | ||
import { goToOms } from '../utils'; | ||
import { openOutline } from 'ionicons/icons' | ||
import { computed } from 'vue'; | ||
import { useAuthStore } from "../store/auth"; | ||
const authStore = useAuthStore(); | ||
const token = computed(() => authStore.getToken) | ||
const oms = computed(() => authStore.getOms) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters