1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

Rename New to oWhatsNewModal

This commit is contained in:
lachie-underhill 2023-06-03 16:35:31 +10:00
parent b5d8d667d7
commit 52e49d7058
No known key found for this signature in database
GPG Key ID: 48057E0D2C37AC20
2 changed files with 13 additions and 13 deletions

View File

@ -1,3 +1,11 @@
<script setup lang="ts">
const emit = defineEmits(['dismiss-modal'])
function dismiss() {
emit('dismiss-modal')
}
</script>
<template>
<div class="modal">
<div class="modal-background" @click="dismiss"></div>
@ -60,14 +68,3 @@
</div>
</div>
</template>
<script>
export default {
name: 'whats-new',
methods: {
dismiss: function () {
this.$emit('dismiss-modal')
}
}
}
</script>

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import New from '@/components/New.vue'
import WhatsNewModal from '@/components/WhatsNewModal.vue'
import { onMounted, ref } from 'vue'
const showModal = ref(false)
@ -20,7 +20,10 @@ onMounted(() => {
<h2 class="subtitle">Track Your Progress on the Community Center!</h2>
</div>
</div>
<New :class="showModal ? 'is-active' : ''" v-on:dismiss-modal="showModal = false"></New>
<WhatsNewModal
:class="showModal ? 'is-active' : ''"
v-on:dismiss-modal="showModal = false"
></WhatsNewModal>
</section>
</template>