summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-07-04 15:27:21 +0200
committerJohann150 <johann.galle@protonmail.com>2022-07-04 15:27:21 +0200
commit121fa4062117525cd15da3fec38d44ba5a4ab66e (patch)
tree775a8d4e85d72aa4f8a87304edbc346c4bfa8ab0 /packages/client/src/components
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadsharkey-121fa4062117525cd15da3fec38d44ba5a4ab66e.tar.gz
sharkey-121fa4062117525cd15da3fec38d44ba5a4ab66e.tar.bz2
sharkey-121fa4062117525cd15da3fec38d44ba5a4ab66e.zip
fix: replace use of window
Diffstat (limited to 'packages/client/src/components')
-rw-r--r--packages/client/src/components/abuse-report-window.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/client/src/components/abuse-report-window.vue b/packages/client/src/components/abuse-report-window.vue
index 5114349620..6b8e36c4da 100644
--- a/packages/client/src/components/abuse-report-window.vue
+++ b/packages/client/src/components/abuse-report-window.vue
@@ -1,5 +1,5 @@
<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');
});
}