Refactor the client to implement a channel navbar #76
1 changed files with 4 additions and 4 deletions
|
@ -152,18 +152,18 @@ const guilds = await api.fetchMyGuilds();
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (!navbar.value) {
|
if (!navbar.value) {
|
||||||
const helpItem = {
|
const sourceLinkItem: NavbarItem = {
|
||||||
title: "Source",
|
title: "Source",
|
||||||
icon: "lucide:code-xml",
|
icon: "lucide:code-xml",
|
||||||
callback: () => { open("https://git.gorb.app/gorb/frontend") }
|
callback: () => { open("https://git.gorb.app/gorb/frontend") }
|
||||||
} as NavbarItem
|
}
|
||||||
|
|
||||||
navbar.value = {
|
navbar.value = {
|
||||||
clientItems: [
|
clientItems: [
|
||||||
helpItem
|
sourceLinkItem
|
||||||
],
|
],
|
||||||
channelItems: [] // set by the channel
|
channelItems: [] // set by the channel
|
||||||
} as INavbar
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue