add renote-detail menu
This commit is contained in:
parent
eed45c7915
commit
5a7865f6c7
|
@ -2362,6 +2362,10 @@ export interface Locale extends ILocale {
|
|||
* 詳細
|
||||
*/
|
||||
"details": string;
|
||||
/**
|
||||
* リノートの詳細
|
||||
*/
|
||||
"renoteDetails": string;
|
||||
/**
|
||||
* 絵文字を選択
|
||||
*/
|
||||
|
|
|
@ -586,6 +586,7 @@ masterVolume: "マスター音量"
|
|||
notUseSound: "サウンドを出力しない"
|
||||
useSoundOnlyWhenActive: "Misskeyがアクティブな時のみサウンドを出力する"
|
||||
details: "詳細"
|
||||
renoteDetails: "リノートの詳細"
|
||||
chooseEmoji: "絵文字を選択"
|
||||
unableToProcess: "操作を完了できません"
|
||||
recentUsed: "最近使用"
|
||||
|
|
|
@ -187,6 +187,7 @@ import MkUrlPreview from '@/components/MkUrlPreview.vue';
|
|||
import MkInstanceTicker from '@/components/MkInstanceTicker.vue';
|
||||
import { pleaseLogin, type OpenOnRemoteOptions } from '@/scripts/please-login.js';
|
||||
import { checkWordMute } from '@/scripts/check-word-mute.js';
|
||||
import { notePage } from '@/filters/note.js';
|
||||
import { userPage } from '@/filters/user.js';
|
||||
import number from '@/filters/number.js';
|
||||
import * as os from '@/os.js';
|
||||
|
@ -565,16 +566,24 @@ function showRenoteMenu(): void {
|
|||
},
|
||||
};
|
||||
}
|
||||
const renoteDetailsMenu: MenuItem = {
|
||||
type: 'link',
|
||||
text: i18n.ts.renoteDetails,
|
||||
icon: 'ti ti-info-circle',
|
||||
to: notePage(note.value),
|
||||
}
|
||||
|
||||
if (isMyRenote) {
|
||||
pleaseLogin({ openOnRemote: pleaseLoginContext.value });
|
||||
os.popupMenu([
|
||||
renoteDetailsMenu,
|
||||
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
||||
{ type: 'divider' },
|
||||
getUnrenote(),
|
||||
], renoteTime.value);
|
||||
} else {
|
||||
os.popupMenu([
|
||||
renoteDetailsMenu,
|
||||
getCopyNoteLinkMenu(note.value, i18n.ts.copyLinkRenote),
|
||||
{ type: 'divider' },
|
||||
getAbuseNoteMenu(note.value, i18n.ts.reportAbuseRenote),
|
||||
|
|
Loading…
Reference in New Issue