feat: move modal out of views and into global app context
This commit is contained in:
parent
d0f9434700
commit
cc664a764d
4 changed files with 30 additions and 52 deletions
|
@ -5,7 +5,6 @@ import type { ColorDict } from "@/interfaces";
|
|||
import { tailLength, wingspan, penis, colors } from "@/sebin";
|
||||
import { toImperial, toFahrenheit } from "@/helpers";
|
||||
import RefToggle from "@/components/RefToggle.vue";
|
||||
import RefModal from "@/components/RefModal.vue";
|
||||
import RefGallery from "@/components/RefGallery.vue";
|
||||
import RefFigure from "@/components/RefFigure.vue";
|
||||
import ColorTable from "@/components/ColorTable.vue";
|
||||
|
@ -39,21 +38,6 @@ const showModal = inject<Function>(showModalKey, Function);
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<RefModal v-show="isWarn">
|
||||
<template #heading>
|
||||
⚠️⚠️⚠️<br />
|
||||
Whoa, Nelly!
|
||||
</template>
|
||||
|
||||
<template #message>
|
||||
By enabling NSFW mode you confirm that you are of legal age to view adult
|
||||
content.
|
||||
</template>
|
||||
|
||||
<template #yes>Yes, show me the goods 👀</template>
|
||||
<template #no>NO, STAHP 😱</template>
|
||||
</RefModal>
|
||||
|
||||
<section>
|
||||
<h1>{{ $route.name }}</h1>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue