Refactor the client to implement a channel navbar #76
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="navbar">
|
<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"
|
<button class="navbar-item" :title="entry.title"
|
||||||
@click.prevent="entry.callback()">
|
@click.prevent="entry.callback()">
|
||||||
<Icon :name="entry.icon" class="navbar-item-icon" />
|
<Icon :name="entry.icon" class="navbar-item-icon" />
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
{{ props.contextName }}
|
{{ props.contextName }}
|
||||||
</div>
|
</div>
|
||||||
</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"
|
<button class="navbar-item" :title="entry.title"
|
||||||
@click.prevent="entry.callback()">
|
@click.prevent="entry.callback()">
|
||||||
<Icon :name="entry.icon" class="navbar-item-icon" />
|
<Icon :name="entry.icon" class="navbar-item-icon" />
|
||||||
|
|
|
@ -130,8 +130,8 @@ export interface NavbarItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NavbarInterface {
|
export interface NavbarInterface {
|
||||||
clientItems: NavbarItem[]
|
clientItems?: NavbarItem[]
|
||||||
channelItems: NavbarItem[] // search bar will require some changes
|
channelItems?: NavbarItem[] // search bar will require some changes
|
||||||
contextName?: string
|
contextName?: string
|
||||||
contextIcon?: string
|
contextIcon?: string
|
||||||
guildUuid?: string
|
guildUuid?: string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue