summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-16 20:07:54 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-16 20:07:54 +0900
commitb5cadeca2e02f88d46625f27c3fcc796e45c2526 (patch)
tree6f21c1bc90c368079ac14d4c0112a52dc99fbfdd
parentfix(client): タッチ操作でウィンドウを閉じることができな... (diff)
downloadmisskey-b5cadeca2e02f88d46625f27c3fcc796e45c2526.tar.gz
misskey-b5cadeca2e02f88d46625f27c3fcc796e45c2526.tar.bz2
misskey-b5cadeca2e02f88d46625f27c3fcc796e45c2526.zip
fix(client): コントロールパネルでファイルを削除した際の表示を修正
Fix #7631
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/client/pages/instance/file-dialog.vue4
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);
});
},