diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2023-10-10 10:43:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 10:43:43 +0900 |
| commit | af1087aed4afd0a34206faaab93f7598bc10e4f2 (patch) | |
| tree | 1a78985d9113362da0ae0d689d1eed11f238b8b1 /packages/frontend/src/scripts/get-drive-file-menu.ts | |
| parent | fix of 0bb0c32908 (diff) | |
| download | sharkey-af1087aed4afd0a34206faaab93f7598bc10e4f2.tar.gz sharkey-af1087aed4afd0a34206faaab93f7598bc10e4f2.tar.bz2 sharkey-af1087aed4afd0a34206faaab93f7598bc10e4f2.zip | |
Feat:「ファイルの詳細」ページを追加 (#11995)
* (add) ファイルビューア
* Update Changelog
* 既存のAPIを利用
* run api extratctor
* Change i18n
* (add) ページに関する説明を追加
* Update CHANGELOG
* (fix) design, classes
Diffstat (limited to 'packages/frontend/src/scripts/get-drive-file-menu.ts')
| -rw-r--r-- | packages/frontend/src/scripts/get-drive-file-menu.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts index 0964108249..8b2144a22f 100644 --- a/packages/frontend/src/scripts/get-drive-file-menu.ts +++ b/packages/frontend/src/scripts/get-drive-file-menu.ts @@ -27,7 +27,7 @@ function rename(file: Misskey.entities.DriveFile) { function describe(file: Misskey.entities.DriveFile) { os.popup(defineAsyncComponent(() => import('@/components/MkFileCaptionEditWindow.vue')), { - default: file.comment != null ? file.comment : '', + default: file.comment ?? '', file: file, }, { done: caption => { @@ -113,6 +113,11 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss icon: 'ti ti-download', download: file.name, }, null, { + type: 'link', + to: `/my/drive/file/${file.id}`, + text: i18n.ts._fileViewer.title, + icon: 'ti ti-file', + }, null, { text: i18n.ts.delete, icon: 'ti ti-trash', danger: true, |