Adding refreshLayers after betraying your team.
This commit is contained in:
parent
389f325618
commit
278c7c5112
@ -72,6 +72,7 @@ export default class SelectTeamUI extends AbstractTopBarInterface {
|
||||
console.error(responseBody.error);
|
||||
return;
|
||||
}
|
||||
this.runCallbacks('update-nodes');
|
||||
this.runCallbacks('close')
|
||||
} catch (error) {
|
||||
console.error('Error parsing json', error);
|
||||
|
@ -78,6 +78,9 @@ export default class MapNode {
|
||||
|
||||
public openSelectTeam(interfaceManager: InterfaceManager): void {
|
||||
const selectTeamUI = new SelectTeamUI(this);
|
||||
selectTeamUI.on('update-nodes', () => {
|
||||
this.runCallbacks('update-nodes');
|
||||
});
|
||||
selectTeamUI.on('close', () => {
|
||||
interfaceManager.remove(selectTeamUI);
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user