Mercurial > gemma
comparison client/src/components/fairway/AvailableFairwayDepthDialogue.vue @ 5578:1d847bc21bb7 surveysperbottleneckid
Available Fairway Depth: Change evaluation of Limiting Factors from objnam to bottleneck_id
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 14 Feb 2022 09:13:09 +0100 |
parents | 2b862190aee4 |
children | 2cadfdc9960c |
comparison
equal
deleted
inserted
replaced
5577:973c71c07bb2 | 5578:1d847bc21bb7 |
---|---|
438 ]), | 438 ]), |
439 depthLimitVisible() { | 439 depthLimitVisible() { |
440 if (this.type !== this.$options.BOTTLENECK) return true; | 440 if (this.type !== this.$options.BOTTLENECK) return true; |
441 if ( | 441 if ( |
442 this.selectedEntry && | 442 this.selectedEntry && |
443 this.limitingFactorsPerBottleneck[this.selectedEntry.properties.name] == | 443 this.limitingFactorsPerBottleneck[ |
444 this.$options.LIMITINGFACTORS.DEPTH | 444 this.selectedEntry.properties.bottleneck_id |
445 ] == this.$options.LIMITINGFACTORS.DEPTH | |
445 ) | 446 ) |
446 return true; | 447 return true; |
447 return false; | 448 return false; |
448 }, | 449 }, |
449 widthLimitVisible() { | 450 widthLimitVisible() { |
450 if (this.type !== this.$options.BOTTLENECK) return true; | 451 if (this.type !== this.$options.BOTTLENECK) return true; |
451 if ( | 452 if ( |
452 this.selectedEntry && | 453 this.selectedEntry && |
453 this.limitingFactorsPerBottleneck[this.selectedEntry.properties.name] == | 454 this.limitingFactorsPerBottleneck[ |
454 this.$options.LIMITINGFACTORS.WIDTH | 455 this.selectedEntry.properties.bottleneck_id |
456 ] == this.$options.LIMITINGFACTORS.WIDTH | |
455 ) | 457 ) |
456 return true; | 458 return true; |
457 }, | 459 }, |
458 limitingFactor() { | 460 limitingFactor() { |
459 if (this.type !== this.$options.BOTTLENECK) return; | 461 if (this.type !== this.$options.BOTTLENECK) return; |
460 if (this.selectedEntry) | 462 if (this.selectedEntry) |
461 return this.limitingFactorsPerBottleneck[ | 463 return this.limitingFactorsPerBottleneck[ |
462 this.selectedEntry.properties.name | 464 this.selectedEntry.properties.bottleneck_id |
463 ]; | 465 ]; |
464 }, | 466 }, |
465 isComplete() { | 467 isComplete() { |
466 return this.selectedFairwayAvailabilityFeature !== null; | 468 return this.selectedFairwayAvailabilityFeature !== null; |
467 }, | 469 }, |