[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:
parent
ff4f26f903
commit
d0328f8da0
|
@ -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})`);
|
||||
|
||||
|
|
Loading…
Reference in New Issue