2018-03-21 17:44:27 +00:00
|
|
|
<template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='menu'>
|
|
|
|
|
|
|
|
<!-- First elements -->
|
2018-03-28 19:51:04 +00:00
|
|
|
<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 -->
|
2018-03-21 19:25:01 +00:00
|
|
|
<span v-for='c in gs.channel.list'
|
2018-03-27 14:41:36 +00:00
|
|
|
@click='gs.channel.nav(c.id);'
|
2018-03-21 19:27:34 +00:00
|
|
|
:class='c.id == gs.channel.current ? `channel active` : `channel`'
|
2018-03-21 17:44:27 +00:00
|
|
|
:data-icon='c.icon'
|
2018-03-21 19:37:03 +00:00
|
|
|
:title='c.label'
|
2018-03-21 19:25:01 +00:00
|
|
|
></span>
|
2018-03-21 17:44:27 +00:00
|
|
|
|
|
|
|
<!-- Last elements -->
|
2018-03-28 19:04:49 +00:00
|
|
|
<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>
|