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'],
|
tags: ['users'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
allowGet: true,
|
||||||
|
cacheSec: 60,
|
||||||
|
|
||||||
description: 'List up the users of ending credits.',
|
description: 'List up the users of ending credits.',
|
||||||
|
|
||||||
|
@ -36,8 +38,7 @@ export const meta = {
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {},
|
||||||
},
|
|
||||||
required: [],
|
required: [],
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ export const navbarItemDef = reactive({
|
||||||
support: {
|
support: {
|
||||||
title: i18n.tsx.supportThisInstance({ name: instance.name ?? host }),
|
title: i18n.tsx.supportThisInstance({ name: instance.name ?? host }),
|
||||||
icon: 'ti ti-pig-money',
|
icon: 'ti ti-pig-money',
|
||||||
to: 'https://go.misskey.io/donate',
|
to: 'https://patreon.com/nrmaa',
|
||||||
},
|
},
|
||||||
cacheClear: {
|
cacheClear: {
|
||||||
title: i18n.ts.clearCache,
|
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, () => {
|
watch(tab, () => {
|
||||||
if (tab.value === 'charts') {
|
if (tab.value === 'charts') {
|
||||||
|
|
|
@ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<MkError v-else-if="error && iAmModerator" @retry="fetchNote()"/>
|
<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/>
|
<MkLoading v-else/>
|
||||||
</Transition>
|
</Transition>
|
||||||
</div>
|
</div>
|
||||||
|
@ -120,6 +120,7 @@ function fetchNote() {
|
||||||
showPrev.value = false;
|
showPrev.value = false;
|
||||||
showNext.value = false;
|
showNext.value = false;
|
||||||
note.value = null;
|
note.value = null;
|
||||||
|
isFetching = true;
|
||||||
misskeyApi('notes/show', {
|
misskeyApi('notes/show', {
|
||||||
noteId: props.noteId,
|
noteId: props.noteId,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue