featI(dashboard): dynamic titles on member/group pages

This commit is contained in:
Draconizations
2022-05-30 10:01:36 +02:00
parent 50732ba010
commit 8113c83828
2 changed files with 20 additions and 1 deletions

View File

@@ -43,6 +43,8 @@
fetchGroup();
});
let title = isPublic ? "group" : "group (dash)";
async function fetchGroup() {
try {
group = await api().groups($params.id).get({auth: !isPublic});
@@ -52,6 +54,9 @@
}
err = "";
loading = false;
if (group.name) {
title = isPublic ? group.name : `${group.name} (dash)`;
}
memberLoading = true;
await new Promise(resolve => setTimeout(resolve, 1000));
fetchMembers();
@@ -237,3 +242,7 @@
}
</style>
<svelte:head>
<title>PluralKit | {title}</title>
</svelte:head>