diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2023-05-04 19:58:17 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-04 19:58:17 +0900 |
| commit | 1f9f63df7c5fe7b59b204accc05c6888461fa733 (patch) | |
| tree | 625986cbfe2ca824c8be4ca99d38ddf9ff8ad644 /packages/frontend/src/scripts | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | sharkey-1f9f63df7c5fe7b59b204accc05c6888461fa733.tar.gz sharkey-1f9f63df7c5fe7b59b204accc05c6888461fa733.tar.bz2 sharkey-1f9f63df7c5fe7b59b204accc05c6888461fa733.zip | |
「このファイルからノートを作成」ボタンを追加 (#10758)
* (add) note this file button
* Update CHANGELOG.md
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/get-drive-file-menu.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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), |