mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
add withHint to instance-info.vue
This commit is contained in:
parent
5389e5e301
commit
7a10d9b43f
1 changed files with 10 additions and 6 deletions
|
@ -368,10 +368,14 @@ async function saveModerationNote() {
|
|||
}
|
||||
}
|
||||
|
||||
async function fetch(): Promise<void> {
|
||||
async function fetch(withHint = false): Promise<void> {
|
||||
const [m, i] = await Promise.all([
|
||||
props.metaHint ?? (iAmAdmin ? misskeyApi('admin/meta') : null),
|
||||
props.instanceHint ?? misskeyApi('federation/show-instance', {
|
||||
(withHint && props.metaHint)
|
||||
? props.metaHint
|
||||
: iAmAdmin ? misskeyApi('admin/meta') : null,
|
||||
(withHint && props.instanceHint)
|
||||
? props.instanceHint
|
||||
: misskeyApi('federation/show-instance', {
|
||||
host: props.host,
|
||||
}),
|
||||
]);
|
||||
|
@ -536,7 +540,7 @@ async function severAllFollowRelations(): Promise<void> {
|
|||
});
|
||||
}
|
||||
|
||||
fetch();
|
||||
fetch(true);
|
||||
|
||||
const headerActions = computed(() => [{
|
||||
text: `https://${props.host}`,
|
||||
|
|
Loading…
Add table
Reference in a new issue