Mercurial > gemma
comparison client/src/components/systemconfiguration/MorphologyClassbreaks.vue @ 3860:9a7a27301720
client: configuration: save sounding result classbreaks and comparison classbreaks separately
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 09 Jul 2019 15:07:54 +0200 |
parents | d1901366676a |
children | 704f853b9c37 |
comparison
equal
deleted
inserted
replaced
3859:d1901366676a | 3860:9a7a27301720 |
---|---|
84 @click="addClassbreak(morphologyClassbreaks, 0)" | 84 @click="addClassbreak(morphologyClassbreaks, 0)" |
85 > | 85 > |
86 <font-awesome-icon icon="plus" /> | 86 <font-awesome-icon icon="plus" /> |
87 </button> | 87 </button> |
88 </div> | 88 </div> |
89 </div> | |
90 <div class="mb-4 px-3"> | |
91 <a | |
92 @click.prevent="submitClassbreaks" | |
93 class="btn btn-info btn-sm text-white" | |
94 > | |
95 <translate>Send</translate> | |
96 </a> | |
89 </div> | 97 </div> |
90 <div class="px-3"> | 98 <div class="px-3"> |
91 <h6 class="font-weight-bold"> | 99 <h6 class="font-weight-bold"> |
92 <translate>Sounding Result Comparison</translate> | 100 <translate>Sounding Result Comparison</translate> |
93 </h6> | 101 </h6> |
172 > | 180 > |
173 <font-awesome-icon icon="plus" /> | 181 <font-awesome-icon icon="plus" /> |
174 </button> | 182 </button> |
175 </div> | 183 </div> |
176 </div> | 184 </div> |
177 <div class="mt-4 px-3"> | 185 <div class="px-3"> |
178 <a @click.prevent="submit" class="btn btn-info btn-sm text-white"> | 186 <a |
187 @click.prevent="submitClassbreaksCompare" | |
188 class="btn btn-info btn-sm text-white" | |
189 > | |
179 <translate>Send</translate> | 190 <translate>Send</translate> |
180 </a> | 191 </a> |
181 </div> | 192 </div> |
182 </div> | 193 </div> |
183 </template> | 194 </template> |
265 ); | 276 ); |
266 }, | 277 }, |
267 showColorPicker(id) { | 278 showColorPicker(id) { |
268 this.activeColorPicker = this.activeColorPicker === id ? null : id; | 279 this.activeColorPicker = this.activeColorPicker === id ? null : id; |
269 }, | 280 }, |
270 submit() { | 281 submitClassbreaks() { |
271 this.$store | 282 this.$store |
272 .dispatch("application/saveConfig", { | 283 .dispatch("application/saveConfig", { |
273 morphology_classbreaks: this.morphologyClassbreaks | 284 morphology_classbreaks: this.morphologyClassbreaks |
274 .map(cb => (cb[1] === "#ffffff" ? cb[0] : cb.join(":"))) | 285 .map(cb => (cb[1] === "#ffffff" ? cb[0] : cb.join(":"))) |
275 .join(","), | 286 .join(",") |
287 }) | |
288 .finally(() => this.$store.dispatch("application/loadConfig")); | |
289 }, | |
290 submitClassbreaksCompare() { | |
291 this.$store | |
292 .dispatch("application/saveConfig", { | |
276 morphology_classbreaks_compare: this.morphologyClassbreaksCompare | 293 morphology_classbreaks_compare: this.morphologyClassbreaksCompare |
277 .map(cb => (cb[1] === "#ffffff" ? cb[0] : cb.join(":"))) | 294 .map(cb => (cb[1] === "#ffffff" ? cb[0] : cb.join(":"))) |
278 .join(",") | 295 .join(",") |
279 }) | 296 }) |
280 .finally(() => this.$store.dispatch("application/loadConfig")); | 297 .finally(() => this.$store.dispatch("application/loadConfig")); |