From b5cadeca2e02f88d46625f27c3fcc796e45c2526 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 16 Aug 2021 20:07:54 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E3=82=B3=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=83=AB=E3=83=91=E3=83=8D=E3=83=AB=E3=81=A7?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=92=E5=89=8A=E9=99=A4?= =?UTF-8?q?=E3=81=97=E3=81=9F=E9=9A=9B=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #7631 --- CHANGELOG.md | 1 + src/client/pages/instance/file-dialog.vue | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 066e8677be..74b24dda70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ ### Bugfixes - タッチ操作でウィンドウを閉じることができない問題を修正 - Renoteされた時刻が投稿された時刻のように表示される問題を修正 +- コントロールパネルでファイルを削除した際の表示を修正 - ActivityPub: 長いユーザーの名前や自己紹介の対応 ## 12.87.0 (2021/08/12) diff --git a/src/client/pages/instance/file-dialog.vue b/src/client/pages/instance/file-dialog.vue index be6bf6cbf2..8a03a11de7 100644 --- a/src/client/pages/instance/file-dialog.vue +++ b/src/client/pages/instance/file-dialog.vue @@ -93,10 +93,8 @@ export default defineComponent({ }); if (canceled) return; - os.api('drive/files/delete', { + os.apiWithDialog('drive/files/delete', { fileId: this.file.id - }).then(() => { - this.$refs.files.removeItem(x => x.id === this.file.id); }); },