forked from hotwax/shopify-hc-oms-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved: UI of the app and added support to configure instance from …
…the same page(hotwax#33)
- Loading branch information
1 parent
b5df765
commit 58076ed
Showing
2 changed files
with
200 additions
and
33 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,60 @@ | ||
<template> | ||
<ion-header> | ||
<ion-toolbar> | ||
<ion-buttons slot="start"> | ||
<ion-button @click="closeModal"> | ||
<ion-icon slot="icon-only" :icon="closeOutline" /> | ||
</ion-button> | ||
</ion-buttons> | ||
<ion-title>{{ $t("OMS Name") }}</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-item lines="none"> | ||
<ion-label class="ion-text-wrap"> | ||
{{ $t('The OMS instance name is the string that comes right before your OMS domain. For example, if your URL looks like this: "https://notnaked-oms.hotwax.io", then your OMS name is "notnaked-oms".') }} | ||
<br /><br />{{ $t('To access UAT environments, replace "oms" with "uat". The UAT name for this example store would be "notnaked-uat".') }} | ||
</ion-label> | ||
</ion-item> | ||
</ion-content> | ||
</template> | ||
|
||
<script> | ||
import { | ||
IonButtons, | ||
IonButton, | ||
IonContent, | ||
IonHeader, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonToolbar, | ||
modalController | ||
} from "@ionic/vue"; | ||
import { defineComponent } from "vue"; | ||
import { closeOutline } from "ionicons/icons"; | ||
export default defineComponent({ | ||
name: "OmsModal", | ||
components: { | ||
IonButtons, | ||
IonButton, | ||
IonContent, | ||
IonIcon, | ||
IonItem, | ||
IonLabel, | ||
IonToolbar | ||
}, | ||
methods: { | ||
closeModal() { | ||
modalController.dismiss({ dismissed: true }); | ||
}, | ||
}, | ||
setup() { | ||
return { | ||
closeOutline | ||
}; | ||
}, | ||
}); | ||
</script> |
Oops, something went wrong.