# HG changeset patch # User Markus Kottlaender # Date 1558097939 -7200 # Node ID c7b48272e11ea5ef52ae699135c9eaaade2004cd # Parent d61b88439c8524ea3aaf533d19f5acd4a99c9bce client: fairway availability: removed unnecessary computed property Since entries() was only used for stretches/sections the check for type=bottlenecks was not necessary. To make think even more clear and straight forward, I just removed this computed entries property and just added a new select, so that now every type has it's own select. Bit more html but less bloated component logic. diff -r d61b88439c85 -r c7b48272e11e client/src/components/fairway/AvailableFairwayDepthDialogue.vue --- a/client/src/components/fairway/AvailableFairwayDepthDialogue.vue Fri May 17 14:41:28 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepthDialogue.vue Fri May 17 14:58:59 2019 +0200 @@ -30,7 +30,6 @@ +
@@ -253,12 +267,6 @@ ); } }, - entries() { - if (this.type === this.$options.BOTTLENECKS) return this.bottlenecksList; - if (this.type === this.$options.STRETCHES) return this.stretches; - if (this.type === this.$options.SECTIONS) return this.sections; - return []; - }, label() { return this.$gettext("Available fairway depth"); },