forked from profectus/Profectus
Fixed tree node locked tooltip appearing before unlocking the layer
This commit is contained in:
parent
514752056c
commit
f1340b1b24
2 changed files with 1 additions and 2 deletions
|
@ -83,7 +83,6 @@ export default {
|
||||||
},
|
},
|
||||||
openDialog(dialog) {
|
openDialog(dialog) {
|
||||||
this[`show${dialog}`] = true;
|
this[`show${dialog}`] = true;
|
||||||
console.log(`show${dialog}`, this[`show${dialog}`]);
|
|
||||||
},
|
},
|
||||||
closeDialog(dialog) {
|
closeDialog(dialog) {
|
||||||
this[`show${dialog}`] = false;
|
this[`show${dialog}`] = false;
|
||||||
|
|
|
@ -72,7 +72,7 @@ export default {
|
||||||
return this.layer.tooltipLocked || this.layer.tooltip || 'I am a button!';
|
return this.layer.tooltipLocked || this.layer.tooltip || 'I am a button!';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.layer.unlocked) {
|
if (player[this.id].unlocked) {
|
||||||
return this.layer.tooltip || `${formatWhole(player[this.id].points)} ${this.layer.resource}`;
|
return this.layer.tooltip || `${formatWhole(player[this.id].points)} ${this.layer.resource}`;
|
||||||
} else {
|
} else {
|
||||||
return this.layer.tooltipLocked ||
|
return this.layer.tooltipLocked ||
|
||||||
|
|
Loading…
Reference in a new issue