Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented: Segment UI for facility details page (#4) #9

Merged
merged 9 commits into from
Nov 17, 2023
Merged
174 changes: 128 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions src/components/AddExternalMappingPopover.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<template>
<ion-content>
<ion-list>
<ion-list-header>{{ translate("Choose system") }}</ion-list-header>
<ion-item button>
{{ translate("Shopify") }}
</ion-item>
<ion-item button>
{{ translate("Netsuite") }}
</ion-item>
<ion-item button lines="none" @click="openCustomMappingModal">
{{ translate("Custom") }}
</ion-item>
</ion-list>
</ion-content>
</template>

<script lang="ts">
import {
IonContent,
IonItem,
IonList,
IonListHeader,
modalController
} from "@ionic/vue";
import { defineComponent } from "vue";
import { translate } from "@hotwax/dxp-components";
import CustomMappingModal from "./CustomMappingModal.vue";

export default defineComponent({
name: "AddExternalMappingPopover",
components: {
IonContent,
IonItem,
IonList,
IonListHeader
},
methods: {
async openCustomMappingModal() {
const customMappingModal = await modalController.create({
component: CustomMappingModal
})

customMappingModal.present()
}
},
setup() {
return {
translate
};
}
});
</script>
Loading
Loading