From 59235a0e0ec035663db6d8dec968103805a1a31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E5=92=B2=28=E3=81=BF=E3=81=95=E3=81=8D=29?= <60120497+Misaki0331@users.noreply.github.com> Date: Sun, 28 Apr 2024 08:20:05 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=E3=82=AB=E3=82=B9?= =?UTF-8?q?=E3=82=BF=E3=83=A0=E7=B5=B5=E6=96=87=E5=AD=97=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=94=BB=E9=9D=A2=E3=81=AB=E3=81=A6=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E6=9B=B4=E6=96=B0=E3=81=A7=E5=8B=9D=E6=89=8B=E3=81=AB?= =?UTF-8?q?=E5=90=8D=E5=89=8D=E3=81=8C=E5=A4=89=E3=82=8F=E3=82=89=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=20(MisskeyIO#620)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/emoji-edit-dialog.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend/src/pages/emoji-edit-dialog.vue b/packages/frontend/src/pages/emoji-edit-dialog.vue index d2430d9ce..792cc3eee 100644 --- a/packages/frontend/src/pages/emoji-edit-dialog.vue +++ b/packages/frontend/src/pages/emoji-edit-dialog.vue @@ -165,6 +165,8 @@ const emit = defineEmits<{ async function changeImage(ev) { file.value = await selectFile(ev.currentTarget ?? ev.target, null); + if (name.value) return; + const candidate = file.value.name.replace(/\.(.+)$/, ''); if (candidate.match(/^[a-z0-9_]+$/)) { name.value = candidate;