make weather block behavior toggleable
This commit is contained in:
parent
6626035439
commit
03ee183cc3
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue