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);
|
console.error(responseBody.error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.runCallbacks('update-nodes');
|
||||||
this.runCallbacks('close')
|
this.runCallbacks('close')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error parsing json', error);
|
console.error('Error parsing json', error);
|
||||||
|
@ -78,6 +78,9 @@ export default class MapNode {
|
|||||||
|
|
||||||
public openSelectTeam(interfaceManager: InterfaceManager): void {
|
public openSelectTeam(interfaceManager: InterfaceManager): void {
|
||||||
const selectTeamUI = new SelectTeamUI(this);
|
const selectTeamUI = new SelectTeamUI(this);
|
||||||
|
selectTeamUI.on('update-nodes', () => {
|
||||||
|
this.runCallbacks('update-nodes');
|
||||||
|
});
|
||||||
selectTeamUI.on('close', () => {
|
selectTeamUI.on('close', () => {
|
||||||
interfaceManager.remove(selectTeamUI);
|
interfaceManager.remove(selectTeamUI);
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user