Refactor the client to implement a channel navbar #76

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

View file

@ -13,6 +13,8 @@
<DefaultIcon v-else-if="props.contextName && props.guildUuid"
class="context-icon"
:name="props.contextName" :seed="props.guildUuid"/>
<NuxtImg v-else
:src="defaultIcon" />
<div class="context-title">
{{ props.contextName }}
@ -32,6 +34,9 @@ import type { NavbarInterface, NavbarItem } from '~/types/interfaces';
const props = defineProps<NavbarInterface>();
const runtimeConfig = useRuntimeConfig();
const defaultIcon = `${runtimeConfig.app.baseURL}/icon.svg`
</script>
<style scoped>

View file

@ -45,10 +45,9 @@ onActivated(async () => {
})
function updateNavbar() {
const runtimeConfig = useRuntimeConfig();
navbar.value.channelItems = []
navbar.value.contextName = "Direct Messages"
navbar.value.contextIcon = `${runtimeConfig.app.baseURL}/icon.svg`
navbar.value.contextIcon = undefined
}
</script>