Mercurial > gemma
changeset 4528:0bad1dcdb044
client: Fairwayprofile: save the state of the enable/disable button for custom depth
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Tue, 08 Oct 2019 12:45:35 +0200 |
parents | 63fceb662047 |
children | 2077347ef345 90936099d1c8 |
files | client/src/components/fairway/BottleneckDialogue.vue |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/BottleneckDialogue.vue Mon Oct 07 15:42:26 2019 +0200 +++ b/client/src/components/fairway/BottleneckDialogue.vue Tue Oct 08 12:45:35 2019 +0200 @@ -541,7 +541,7 @@ if (cut) { if (cut.depth) { this.depth = cut.depth; - this.useCustomDepth = true; + this.useCustomDepth = cut.useCustomDepth; } this.applyCoordinates(cut.coordinates); } @@ -709,7 +709,8 @@ bottleneckName: this.selectedBottleneck, coordinates: [...this.startPoint, ...this.endPoint], timestamp: new Date().getTime(), - depth: this.depth + depth: this.depth, + useCustomDepth: this.useCustomDepth }; const existingEntry = previousCuts.find(cut => { return JSON.stringify(cut) === JSON.stringify(newEntry);