[lib.channel-controller] fix nav() update channel.id before room.fetch() for rooms to be fetched according to the NEW channel id

This commit is contained in:
xdrm-brackets 2018-03-27 18:48:26 +02:00
parent ff4f26f903
commit d0328f8da0
1 changed files with 4 additions and 4 deletions

View File

@ -37,12 +37,12 @@ export default class ChannelController{
/* (2) Navigate vue-router */
gs.get.router.push(`/channel/${channel.link}`);
/* (3) Load rooms */
gs.get.room.fetch();
/* (4) Update active element */
/* (3) Update active element */
this.current = channel.id;
/* (4) Load rooms */
gs.get.room.fetch();
/* (5) Log channel */
console.log(`[channel.current] ${channel.link} (${channel.label})`);