Mercurial > gemma
comparison client/src/store/map.js @ 3313:b01c2f474770
client: identify: changed order of state mutations
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 17 May 2019 14:07:16 +0200 |
parents | 80037790032d |
children | c0f5f62343c9 |
comparison
equal
deleted
inserted
replaced
3312:00548f0e81c3 | 3313:b01c2f474770 |
---|---|
373 if (rootState.imports.selectedStretchId === stretches[0].getId()) { | 373 if (rootState.imports.selectedStretchId === stretches[0].getId()) { |
374 commit("imports/selectedStretchId", null, { | 374 commit("imports/selectedStretchId", null, { |
375 root: true | 375 root: true |
376 }); | 376 }); |
377 } else { | 377 } else { |
378 commit("application/showFairwayDepth", true, { root: true }); | |
379 commit("fairwayavailability/type", "stretches", { root: true }); | |
380 commit("imports/selectedStretchId", stretches[0].getId(), { | 378 commit("imports/selectedStretchId", stretches[0].getId(), { |
381 root: true | 379 root: true |
382 }); | 380 }); |
381 commit("fairwayavailability/type", "stretches", { root: true }); | |
382 commit("application/showFairwayDepth", true, { root: true }); | |
383 dispatch("moveToFeauture", { feature: stretches[0], zoom: 17 }); | 383 dispatch("moveToFeauture", { feature: stretches[0], zoom: 17 }); |
384 } | 384 } |
385 } | 385 } |
386 if ( | 386 if ( |
387 sections.length === 1 && | 387 sections.length === 1 && |
392 if (rootState.imports.selectedSectionId === sections[0].getId()) { | 392 if (rootState.imports.selectedSectionId === sections[0].getId()) { |
393 commit("imports/selectedSectionId", null, { | 393 commit("imports/selectedSectionId", null, { |
394 root: true | 394 root: true |
395 }); | 395 }); |
396 } else { | 396 } else { |
397 commit("application/showFairwayDepth", true, { root: true }); | |
398 commit("fairwayavailability/type", "sections", { root: true }); | |
399 commit("imports/selectedSectionId", sections[0].getId(), { | 397 commit("imports/selectedSectionId", sections[0].getId(), { |
400 root: true | 398 root: true |
401 }); | 399 }); |
400 commit("fairwayavailability/type", "sections", { root: true }); | |
401 commit("application/showFairwayDepth", true, { root: true }); | |
402 dispatch("moveToFeauture", { feature: sections[0], zoom: 17 }); | 402 dispatch("moveToFeauture", { feature: sections[0], zoom: 17 }); |
403 } | 403 } |
404 } | 404 } |
405 } | 405 } |
406 | 406 |