make weather block behavior toggleable

This commit is contained in:
Loren Norman 2025-07-30 15:23:55 -04:00
parent 6626035439
commit 03ee183cc3

View file

@ -26,7 +26,12 @@ export default {
}
},
autoDisable: true,
setEnabledByLocation: function() {
// bail if this behavior has been disabled
if(!this.autoDisable) { return }
// must have a location and a parent (copacetic with disableOrphans)
if(this.getFieldValue("POWER_UP_ID") === "" || !this.getParent()) {
this.disabled || this.setEnabled(false)