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,12 +368,16 @@ async function saveModerationNote() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetch(): Promise<void> {
|
async function fetch(withHint = false): Promise<void> {
|
||||||
const [m, i] = await Promise.all([
|
const [m, i] = await Promise.all([
|
||||||
props.metaHint ?? (iAmAdmin ? misskeyApi('admin/meta') : null),
|
(withHint && props.metaHint)
|
||||||
props.instanceHint ?? misskeyApi('federation/show-instance', {
|
? props.metaHint
|
||||||
host: props.host,
|
: iAmAdmin ? misskeyApi('admin/meta') : null,
|
||||||
}),
|
(withHint && props.instanceHint)
|
||||||
|
? props.instanceHint
|
||||||
|
: misskeyApi('federation/show-instance', {
|
||||||
|
host: props.host,
|
||||||
|
}),
|
||||||
]);
|
]);
|
||||||
meta.value = m;
|
meta.value = m;
|
||||||
instance.value = i;
|
instance.value = i;
|
||||||
|
@ -536,7 +540,7 @@ async function severAllFollowRelations(): Promise<void> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch();
|
fetch(true);
|
||||||
|
|
||||||
const headerActions = computed(() => [{
|
const headerActions = computed(() => [{
|
||||||
text: `https://${props.host}`,
|
text: `https://${props.host}`,
|
||||||
|
|
Loading…
Add table
Reference in a new issue