Files
hoppscotch/packages/hoppscotch-ui/src/stories/ConfirmModal.story.vue
Joel Jacob Stephen 3f59597864 feat: introducing self hosted admin dashboard package (#12)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
2023-02-28 13:13:27 +05:30

19 lines
458 B
Vue

<template>
<Story title="Confirm Modal">
<HoppSmartConfirmModal :show="show" :title="'Confirm Modal'" @hide-modal="show = false"
@resolve="resolveConfirmModal" />
</Story>
</template>
<script lang="ts" setup>
import { ref } from "vue"
import { HoppSmartConfirmModal } from "../components/smart"
const show = ref(true)
const resolveConfirmModal = (resolve: string | null) => {
alert("resolved: " + resolve)
show.value = false
}
</script>