Skip to content
Snippets Groups Projects
Unverified Commit 121fa406 authored by Johann150's avatar Johann150
Browse files

fix: replace use of window

parent f9444aa3
No related branches found
No related tags found
No related merge requests found
<template>
<XWindow ref="window" :initial-width="400" :initial-height="500" :can-resize="true" @closed="emit('closed')">
<XWindow ref="uiWindow" :initial-width="400" :initial-height="500" :can-resize="true" @closed="emit('closed')">
<template #header>
<i class="fas fa-exclamation-circle" style="margin-right: 0.5em;"></i>
<I18n :src="i18n.ts.reportAbuseOf" tag="span">
......@@ -40,7 +40,7 @@ const emit = defineEmits<{
(ev: 'closed'): void;
}>();
const window = ref<InstanceType<typeof XWindow>>();
const uiWindow = ref<InstanceType<typeof XWindow>>();
const comment = ref(props.initialComment || '');
function send() {
......@@ -52,7 +52,7 @@ function send() {
type: 'success',
text: i18n.ts.abuseReported
});
window.value?.close();
uiWindow.value?.close();
emit('closed');
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment