Start implementation of branches, new form element tabledropdown, model improvements
This commit is contained in:
@@ -70,6 +70,9 @@ export default {
|
||||
newValue.on('friendloginchanged', () => {
|
||||
this.fetchFriends();
|
||||
});
|
||||
newValue.on('reloadmenu', () => {
|
||||
this.loadMenu();
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -84,12 +87,10 @@ export default {
|
||||
},
|
||||
mounted() {
|
||||
if (this.$store.getters.socket) {
|
||||
console.log('connect sockets in navigation')
|
||||
this.$store.getters.socket.on('forumschanged', (data) => {
|
||||
this.fetchForums();
|
||||
});
|
||||
this.$store.getters.socket.on('friendloginchanged', () => {
|
||||
console.log('update friends');
|
||||
this.fetchFriends();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user