From c6fc9af77ac432fb18f229421f5420c21f06f5ce Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Mar 2023 18:29:17 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=E3=83=89=E3=83=A9=E3=82=A4?= =?UTF-8?q?=E3=83=96=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=81=AE=E3=83=A1?= =?UTF-8?q?=E3=83=8B=E3=83=A5=E3=83=BC=E3=81=8C=E6=AD=A3=E5=B8=B8=E3=81=AB?= =?UTF-8?q?=E5=8B=95=E4=BD=9C=E3=81=97=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #10387 --- packages/frontend/src/scripts/get-drive-file-menu.ts | 10 +++++----- 1 file 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), }]; }