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

33 lines
703 B
Vue
Raw Permalink Normal View History

2018-03-21 17:44:27 +00:00
<template>
<div class='menu'>
<!-- First elements -->
<span class='channel' data-special='1' data-icon='group' :data-sub='gs.content.cbuf.users != null ? `${gs.content.cbuf.users.length} online`:`0 online`'></span>
2018-03-21 17:44:27 +00:00
<!-- 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`'
2018-03-21 17:44:27 +00:00
:data-icon='c.icon'
:title='c.label'
></span>
2018-03-21 17:44:27 +00:00
<!-- Last elements -->
<span class='channel' data-special='1' data-icon='add' data-add='1' @click='gs.popup.show(`channel.create`)'></span>
2018-03-21 17:44:27 +00:00
</div>
</template><script>
export default {
name: 'menu-',
data(){ return { gs: gs.get }; }
}
</script>