mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
Appease linter
This commit is contained in:
parent
7f64a27268
commit
0937779bc2
1 changed files with 8 additions and 8 deletions
|
@ -383,7 +383,7 @@ export function getNoteMenu(props: {
|
|||
icon: 'ti ti-repeat',
|
||||
text: i18n.ts.renote,
|
||||
children: () => getNewRenoteMenu(appearNote),
|
||||
})
|
||||
});
|
||||
|
||||
menuItems.push({
|
||||
type: 'parent',
|
||||
|
@ -592,7 +592,7 @@ export async function getNewRenoteMenu(appearNote: Misskey.entities.Note): Promi
|
|||
channelId: channel?.id,
|
||||
renoteId: appearNote.id,
|
||||
}).then(() => {
|
||||
os.toast(channel ? i18n.tsx.renotedToX({name: channel.name}) : i18n.ts.renoted);
|
||||
os.toast(channel ? i18n.tsx.renotedToX({ name: channel.name }) : i18n.ts.renoted);
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -608,12 +608,12 @@ export async function getNewRenoteMenu(appearNote: Misskey.entities.Note): Promi
|
|||
|
||||
// Notes from channels might not allow renoting outside the channel.
|
||||
if (!appearNote.channel || appearNote.channel.allowRenoteToExternal) {
|
||||
if (renoteItems.length > 0) renoteItems.push({type: 'divider'});
|
||||
if (renoteItems.length > 0) renoteItems.push({ type: 'divider' });
|
||||
renoteItems.push(...boostMenuItems(ref(appearNote), (v, l) => renoteFunc(v, l, undefined)));
|
||||
// Local-only notes should have the switch visibly forced on.
|
||||
if (appearNote.localOnly) {
|
||||
for (const item of renoteItems) {
|
||||
if (item && item['type'] == "switch" && item['text'] == i18n.ts._timelines.local) {
|
||||
if (item && item['type'] === "switch" && item['text'] === i18n.ts._timelines.local) {
|
||||
item['ref'] = ref(true);
|
||||
item['disabled'] = true;
|
||||
break;
|
||||
|
@ -633,19 +633,19 @@ export async function getNewRenoteMenu(appearNote: Misskey.entities.Note): Promi
|
|||
}));
|
||||
if (otherChannelItems.length > 0) {
|
||||
renoteItems.push(
|
||||
{type: 'divider'},
|
||||
{type: 'label', text: appearNote.channel ? i18n.ts.renoteToOtherChannel : i18n.ts.renoteToChannel},
|
||||
{ type: 'divider' },
|
||||
{ type: 'label', text: appearNote.channel ? i18n.ts.renoteToOtherChannel : i18n.ts.renoteToChannel },
|
||||
...otherChannelItems
|
||||
);
|
||||
}
|
||||
const channelQuoteItems: MenuItem[] = channels.map((channel) => ({
|
||||
type: 'button',
|
||||
text: channel.name,
|
||||
action: () => {os.post({renote: appearNote, channel: channel});},
|
||||
action: () => {os.post({ renote: appearNote, channel: channel });},
|
||||
}));
|
||||
if (channelQuoteItems.length > 0) {
|
||||
renoteItems.push(
|
||||
{type: 'divider'},
|
||||
{ type: 'divider' },
|
||||
{
|
||||
type: 'parent',
|
||||
text: i18n.ts.inChannelQuote,
|
||||
|
|
Loading…
Add table
Reference in a new issue