parent
14cff15c89
commit
d4eb1def61
2 changed files with 7 additions and 3 deletions
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, computed, watch, provide } from 'vue';
|
import { defineAsyncComponent, computed, watch, provide } from 'vue';
|
||||||
|
import type { Tab } from '@/components/global/MkPageHeader.tabs.vue';
|
||||||
import XTimeline from '@/components/MkTimeline.vue';
|
import XTimeline from '@/components/MkTimeline.vue';
|
||||||
import MkPostForm from '@/components/MkPostForm.vue';
|
import MkPostForm from '@/components/MkPostForm.vue';
|
||||||
import { scroll } from '@/scripts/scroll';
|
import { scroll } from '@/scripts/scroll';
|
||||||
|
@ -32,7 +33,6 @@ import { i18n } from '@/i18n';
|
||||||
import { instance } from '@/instance';
|
import { instance } from '@/instance';
|
||||||
import { $i } from '@/account';
|
import { $i } from '@/account';
|
||||||
import { definePageMetadata } from '@/scripts/page-metadata';
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
||||||
import type { Tab } from '@/components/global/MkPageHeader.tabs.vue';
|
|
||||||
|
|
||||||
provide('shouldOmitHeaderTitle', true);
|
provide('shouldOmitHeaderTitle', true);
|
||||||
|
|
||||||
|
@ -83,7 +83,9 @@ async function chooseAntenna(ev: MouseEvent): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function chooseChannel(ev: MouseEvent): Promise<void> {
|
async function chooseChannel(ev: MouseEvent): Promise<void> {
|
||||||
const channels = await os.api('channels/followed');
|
const channels = await os.api('channels/followed', {
|
||||||
|
limit: 100,
|
||||||
|
});
|
||||||
const items = channels.map(channel => ({
|
const items = channels.map(channel => ({
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
text: channel.name,
|
text: channel.name,
|
||||||
|
|
|
@ -39,7 +39,9 @@ if (props.column.channelId == null) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setChannel() {
|
async function setChannel() {
|
||||||
const channels = await os.api('channels/followed');
|
const channels = await os.api('channels/followed', {
|
||||||
|
limit: 100,
|
||||||
|
});
|
||||||
const { canceled, result: channel } = await os.select({
|
const { canceled, result: channel } = await os.select({
|
||||||
title: i18n.ts.selectChannel,
|
title: i18n.ts.selectChannel,
|
||||||
items: channels.map(x => ({
|
items: channels.map(x => ({
|
||||||
|
|
Loading…
Reference in a new issue