Remove unnecessary dialog ref

This commit is contained in:
christian-byrne
2025-01-18 14:55:00 -07:00
parent d6c1036c68
commit a437fe90fc

View File

@@ -3,7 +3,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { onMounted, ref } from 'vue' import { onMounted } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import ReportIssuePanel from '@/components/dialog/content/error/ReportIssuePanel.vue' import ReportIssuePanel from '@/components/dialog/content/error/ReportIssuePanel.vue'
@@ -11,7 +11,6 @@ import { useDialogStore } from '@/stores/dialogStore'
import BaseViewTemplate from '@/views/templates/BaseViewTemplate.vue' import BaseViewTemplate from '@/views/templates/BaseViewTemplate.vue'
const router = useRouter() const router = useRouter()
const dialog = ref(null)
const dialogStore = useDialogStore() const dialogStore = useDialogStore()
onMounted(() => { onMounted(() => {
@@ -20,9 +19,7 @@ onMounted(() => {
component: ReportIssuePanel, component: ReportIssuePanel,
title: 'Report an issue', title: 'Report an issue',
dialogComponentProps: { dialogComponentProps: {
onClose: () => { onClose: () => router.push('/')
router.push('/')
}
}, },
props: { props: {
errorType: 'desktop', errorType: 'desktop',
@@ -35,6 +32,5 @@ onMounted(() => {
] ]
} }
}) })
dialog.value = useDialogStore().dialogStack[0]
}) })
</script> </script>