-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rohan Bansal
committed
Apr 23, 2024
1 parent
1baff45
commit 11b4aa8
Showing
8 changed files
with
14 additions
and
42 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 |
---|---|---|
|
@@ -11,6 +11,4 @@ | |
defineProps<{ | ||
showModal: boolean | ||
}>() | ||
defineEmits(['closemodal', 'confirmmodal']) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,7 @@ | ||
<template> | ||
<div class="beam__modal-confirm"> | ||
<h2>Would you like to continue?</h2> | ||
<button class="btn" @click="confirmModal">Yes</button> | ||
<button class="btn" @click="closeModal">No</button> | ||
<button class="btn" @click="$emit('confirmmodal')">Yes</button> | ||
<button class="btn" @click="$emit('closemodal')">No</button> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const emit = defineEmits(['confirmmodal', 'closemodal']) | ||
const confirmModal = () => { | ||
emit('confirmmodal') | ||
} | ||
const closeModal = () => { | ||
emit('closemodal') | ||
} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,3 @@ onUnmounted(() => { | |
}) | ||
}) | ||
</script> | ||
<style scoped></style> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
File renamed without changes.