summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-22 18:29:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-22 18:29:17 +0900
commitc6fc9af77ac432fb18f229421f5420c21f06f5ce (patch)
treeccf4a978f4351fab545af982c560234ec789bee9 /packages/frontend/src/scripts
parentMerge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff)
downloadmisskey-c6fc9af77ac432fb18f229421f5420c21f06f5ce.tar.gz
misskey-c6fc9af77ac432fb18f229421f5420c21f06f5ce.tar.bz2
misskey-c6fc9af77ac432fb18f229421f5420c21f06f5ce.zip
fix(client): ドライブファイルのメニューが正常に動作しない問題を修正
Fix #10387
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/get-drive-file-menu.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts
index 56ab516038..52e610e437 100644
--- a/packages/frontend/src/scripts/get-drive-file-menu.ts
+++ b/packages/frontend/src/scripts/get-drive-file-menu.ts
@@ -64,19 +64,19 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile) {
return [{
text: i18n.ts.rename,
icon: 'ti ti-forms',
- action: rename,
+ action: () => rename(file),
}, {
text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive,
icon: file.isSensitive ? 'ti ti-eye' : 'ti ti-eye-off',
- action: toggleSensitive,
+ action: () => toggleSensitive(file),
}, {
text: i18n.ts.describeFile,
icon: 'ti ti-text-caption',
- action: describe,
+ action: () => describe(file),
}, null, {
text: i18n.ts.copyUrl,
icon: 'ti ti-link',
- action: copyUrl,
+ action: () => copyUrl(file),
}, {
type: 'a',
href: file.url,
@@ -88,6 +88,6 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile) {
text: i18n.ts.delete,
icon: 'ti ti-trash',
danger: true,
- action: deleteFile,
+ action: () => deleteFile(file),
}];
}