fix: some minor problems
This commit is contained in:
parent
3ea35434db
commit
86e344bb88
4 changed files with 7 additions and 5 deletions
|
@ -15,6 +15,8 @@ export const meta = {
|
|||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
allowGet: true,
|
||||
cacheSec: 60,
|
||||
|
||||
description: 'List up the users of ending credits.',
|
||||
|
||||
|
@ -36,8 +38,7 @@ export const meta = {
|
|||
|
||||
export const paramDef = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
},
|
||||
properties: {},
|
||||
required: [],
|
||||
} as const;
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ export const navbarItemDef = reactive({
|
|||
support: {
|
||||
title: i18n.tsx.supportThisInstance({ name: instance.name ?? host }),
|
||||
icon: 'ti ti-pig-money',
|
||||
to: 'https://go.misskey.io/donate',
|
||||
to: 'https://patreon.com/nrmaa',
|
||||
},
|
||||
cacheClear: {
|
||||
title: i18n.ts.clearCache,
|
||||
|
|
|
@ -221,7 +221,7 @@ const instanceColor = computed(() => {
|
|||
};
|
||||
});
|
||||
|
||||
staffs.value = await misskeyApi('users/credits', {});
|
||||
staffs.value = await misskeyApiGet('users/credits');
|
||||
|
||||
watch(tab, () => {
|
||||
if (tab.value === 'charts') {
|
||||
|
|
|
@ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
</div>
|
||||
</div>
|
||||
<MkError v-else-if="error && iAmModerator" @retry="fetchNote()"/>
|
||||
<MkNoteNotFound v-else-if="!isFetching || note == null || note?.isHidden || error"/>
|
||||
<MkNoteNotFound v-else-if="!isFetching && (note == null || note?.isHidden || error)"/>
|
||||
<MkLoading v-else/>
|
||||
</Transition>
|
||||
</div>
|
||||
|
@ -120,6 +120,7 @@ function fetchNote() {
|
|||
showPrev.value = false;
|
||||
showNext.value = false;
|
||||
note.value = null;
|
||||
isFetching = true;
|
||||
misskeyApi('notes/show', {
|
||||
noteId: props.noteId,
|
||||
}).then(res => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue