diff options
| author | nenohi <kimutipartylove@gmail.com> | 2022-11-13 07:54:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-13 07:54:05 +0900 |
| commit | 7462a1e816d341ac84eb60073dd6874a132b0151 (patch) | |
| tree | d2e33f67d404da50eb6b6146df5c1004bc2c8e81 /packages/client/src/scripts | |
| parent | fix(client): インスタンスティッカーのfaviconを読み込む際に... (diff) | |
| download | sharkey-7462a1e816d341ac84eb60073dd6874a132b0151.tar.gz sharkey-7462a1e816d341ac84eb60073dd6874a132b0151.tar.bz2 sharkey-7462a1e816d341ac84eb60073dd6874a132b0151.zip | |
ノートの詳細ボタンを...に追加 (#9166)
* noteの詳細を追加
* add detail option to note menu
* add detailed , fix typo
* delete button
Co-authored-by: Gray Olson <gray@grayolson.com>
Diffstat (limited to 'packages/client/src/scripts')
| -rw-r--r-- | packages/client/src/scripts/get-note-menu.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 692986cd55..4826cd70fd 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -8,6 +8,7 @@ import * as os from '@/os'; import copyToClipboard from '@/scripts/copy-to-clipboard'; import { url } from '@/config'; import { noteActions } from '@/store'; +import { notePage } from '@/filters/note'; export function getNoteMenu(props: { note: misskey.entities.Note; @@ -172,7 +173,9 @@ export function getNoteMenu(props: { url: `${url}/notes/${appearNote.id}`, }); } - + function notedetails(): void { + os.pageWindow(`/notes/${appearNote.id}`); + } async function translate(): Promise<void> { if (props.translation.value != null) return; props.translating.value = true; @@ -198,8 +201,11 @@ export function getNoteMenu(props: { danger: true, action: unclip, }, null] : [] - ), - { + ), { + icon: 'fas fa-external-link-alt', + text: i18n.ts.details, + action: notedetails, + }, { icon: 'fas fa-copy', text: i18n.ts.copyContent, action: copyContent, @@ -300,6 +306,10 @@ export function getNoteMenu(props: { .filter(x => x !== undefined); } else { menu = [{ + icon: 'fas fa-external-link-alt', + text: i18n.ts.detailed, + action: openDetail, + }, { icon: 'fas fa-copy', text: i18n.ts.copyContent, action: copyContent, |