discord-client/webpack/vue/auth/menu.vue

34 lines
497 B
Vue

<template>
<div class='menu'>
<!-- First elements -->
<!-- Channel List -->
<span v-for='c in gs.channel.list'
@click='gs.channel.nav(c.id);'
:class='c.id == gs.channel.current ? `channel active` : `channel`'
:data-sub='c.sub'
:data-special='c.id == -1?1:0'
:data-add='c.add'
:data-icon='c.icon'
:title='c.label'
></span>
<!-- Last elements -->
</div>
</template><script>
export default {
name: 'menu-',
data(){ return { gs: gs.get }; }
}
</script>