upd: view.vue.container.inbox (minmod: cleaned code 'msg[0]' instead of 'gstore.notif[1].data[id][0]')

This commit is contained in:
xdrm-brackets 2017-12-06 09:42:32 +01:00
parent 9b67c15a6b
commit adcaf1a72f
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<div id='CONTAINER' class='message'>
<div v-for='(msg, id) in gstore.notif[1].data' :class="msg[0] == gstore.server.session.name ? 'me' : ''" :data-noauthor='id == 0 || gstore.notif[1].data[id-1][0] != gstore.notif[1].data[id][0] ? "1" : "0"'>
<span class='author' v-text='msg[0]' v-if='id == 0 || gstore.notif[1].data[id-1][0] != gstore.notif[1].data[id][0]'></span>
<span class='author' v-text='msg[0]' v-if='id == 0 || gstore.notif[1].data[id-1][0] != msg[0]'></span>
<span class='content' v-html='bbcode(msg[1])'></span>
</div>
@ -13,6 +13,7 @@
<input type='text' placeholder='Nouveau message..' id='msg-new-content' v-model='gstore.new_msg'>
<button></button>
</form>
</div>