From 1f9f63df7c5fe7b59b204accc05c6888461fa733 Mon Sep 17 00:00:00 2001 From: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 4 May 2023 19:58:17 +0900 Subject: 「このファイルからノートを作成」ボタンを追加 (#10758) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * (add) note this file button * Update CHANGELOG.md --- packages/frontend/src/scripts/get-drive-file-menu.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/frontend/src/scripts') diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts index 52e610e437..e4ebdcb15b 100644 --- a/packages/frontend/src/scripts/get-drive-file-menu.ts +++ b/packages/frontend/src/scripts/get-drive-file-menu.ts @@ -74,6 +74,12 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile) { icon: 'ti ti-text-caption', action: () => describe(file), }, null, { + text: i18n.ts.createNoteFromTheFile, + icon: 'ti ti-pencil', + action: () => os.post({ + initialFiles: [file], + }), + }, { text: i18n.ts.copyUrl, icon: 'ti ti-link', action: () => copyUrl(file), -- cgit v1.2.3-freya