1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 08:26:19 +02:00

「このファイルからノートを作成」ボタンを追加 (#10758)

* (add) note this file button

* Update CHANGELOG.md
This commit is contained in:
かっこかり
2023-05-04 19:58:17 +09:00
committed by GitHub
parent 58c3fc6cd2
commit 1f9f63df7c
3 changed files with 8 additions and 0 deletions

View File

@@ -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),