discord-client/webpack/vue/dialog.vue

43 lines
661 B
Vue
Raw Normal View History

2018-03-21 17:44:27 +00:00
<template>
<div class='dialog'>
<div class='header'>
<div class='title'>{{ gs.channel.get().id < 0 ? '' : gs.channel.get().label }}</div>
2018-03-21 17:44:27 +00:00
</div>
<div class='body'>
</div>
<div class='body'>
<div v-for='c in gs.lchannel'>
<div class='toggle'
:data-toggle='c.visible?1:0'
@click='c.visible=!c.visible'>{{ c.type }} channels</div>
<ul>
<li v-for='(lc, i) in c.list'
:class='c.active==i?`active`:``'
:data-type='c.type'
@click='c.active=i'>{{ lc }}</li>
</ul>
</div>
</div>
2018-03-21 17:44:27 +00:00
</div>
</template><script>
export default {
name: 'dialog-',
data(){ return { gs: gs.get }; }
2018-03-21 17:44:27 +00:00
}
</script>