Refactor the client to implement a channel navbar #76

Open
twig wants to merge 22 commits from navbar into main
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 5ca4762f01 - Show all commits

View file

@ -1,6 +1,6 @@
<template>
<div id="navbar">
<div v-for="entry of props.clientItems" id="navbar-left">
<div v-if="props.clientItems" v-for="entry of props.clientItems" id="navbar-left">
<button class="navbar-item" :title="entry.title"
@click.prevent="entry.callback()">
<Icon :name="entry.icon" class="navbar-item-icon" />
@ -20,7 +20,7 @@
{{ props.contextName }}
</div>
</div>
<div v-for="entry of props.channelItems" id="navbar-right">
<div v-if="props.channelItems" v-for="entry of props.channelItems" id="navbar-right">
<button class="navbar-item" :title="entry.title"
@click.prevent="entry.callback()">
<Icon :name="entry.icon" class="navbar-item-icon" />

View file

@ -130,8 +130,8 @@ export interface NavbarItem {
}
export interface NavbarInterface {
clientItems: NavbarItem[]
channelItems: NavbarItem[] // search bar will require some changes
clientItems?: NavbarItem[]
channelItems?: NavbarItem[] // search bar will require some changes
contextName?: string
contextIcon?: string
guildUuid?: string