Merge branch 'future-2024-04-10' into future-2024-04-25-post

This commit is contained in:
dakkar 2024-05-11 13:05:35 +01:00
commit af801bd9d2
10 changed files with 27 additions and 27 deletions

View file

@ -377,7 +377,7 @@ export function getNoteMenu(props: {
action: () => toggleThreadMute(true),
}),
appearNote.userId === $i.id ? ($i.pinnedNoteIds ?? []).includes(appearNote.id) ? {
icon: 'ph-push-pin ph-bold ph-lgned-off',
icon: 'ph-push-pin-slash ph-bold ph-lg',
text: i18n.ts.unpin,
action: () => togglePin(false),
} : {
@ -416,7 +416,7 @@ export function getNoteMenu(props: {
{ type: 'divider' },
{
type: 'parent' as const,
icon: 'ti ti-device-tv',
icon: 'ph-television ph-bold ph-lg',
text: i18n.ts.channel,
children: async () => {
const channelChildMenu = [] as MenuItem[];
@ -425,7 +425,7 @@ export function getNoteMenu(props: {
if (channel.pinnedNoteIds.includes(appearNote.id)) {
channelChildMenu.push({
icon: 'ti ti-pinned-off',
icon: 'ph-push-pin-slash ph-bold ph-lg',
text: i18n.ts.unpin,
action: () => os.apiWithDialog('channels/update', {
channelId: appearNote.channel!.id,
@ -434,7 +434,7 @@ export function getNoteMenu(props: {
});
} else {
channelChildMenu.push({
icon: 'ti ti-pin',
icon: 'ph-push-pin ph-bold ph-lg',
text: i18n.ts.pin,
action: () => os.apiWithDialog('channels/update', {
channelId: appearNote.channel!.id,
@ -557,7 +557,7 @@ export function getRenoteMenu(props: {
if (appearNote.channel) {
channelRenoteItems.push(...[{
text: i18n.ts.inChannelRenote,
icon: 'ti ti-repeat',
icon: 'ph ph-repeat',
action: () => {
const el = props.renoteButton.value;
if (el) {
@ -578,7 +578,7 @@ export function getRenoteMenu(props: {
},
}, {
text: i18n.ts.inChannelQuote,
icon: 'ti ti-quote',
icon: 'ph ph-quotes',
action: () => {
if (!props.mock) {
os.post({
@ -593,7 +593,7 @@ export function getRenoteMenu(props: {
if (!appearNote.channel || appearNote.channel.allowRenoteToExternal) {
normalRenoteItems.push(...[{
text: i18n.ts.renote,
icon: 'ti ti-repeat',
icon: 'ph ph-repeat',
action: () => {
const el = props.renoteButton.value;
if (el) {
@ -624,7 +624,7 @@ export function getRenoteMenu(props: {
},
}, (props.mock) ? undefined : {
text: i18n.ts.quote,
icon: 'ti ti-quote',
icon: 'ph ph-quotes',
action: () => {
os.post({
renote: appearNote,