Mercurial > gemma
diff client/src/components/importoverview/StretchDetails.vue @ 2685:39a05f8c34e6 import-overview-rework
import_overview: Refactoring of detailed information.
When the entry is opened, a request is made to retrieve the
detailed information for this entry. It contains the log
protocol information as well as the executive summary.
This is passed down to child components of the entry.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 15 Mar 2019 13:42:49 +0100 |
parents | 11fd7ee37f10 |
children | 5b990f612420 |
line wrap: on
line diff
--- a/client/src/components/importoverview/StretchDetails.vue Fri Mar 15 12:29:49 2019 +0100 +++ b/client/src/components/importoverview/StretchDetails.vue Fri Mar 15 13:42:49 2019 +0100 @@ -2,7 +2,7 @@ <div> <span class="empty"> </span> <a @click="zoomToStretch()" class="text-info pointer">{{ - entry.summary.stretch + details.summary.stretch }}</a> </div> </template> @@ -26,7 +26,7 @@ export default { name: "stretchdetails", - props: ["entry"], + props: ["entry", "details"], methods: { moveToExtent(feature) { this.$store.commit("map/moveToExtent", { @@ -36,7 +36,7 @@ }); }, zoomToStretch() { - const name = this.entry.summary.stretch; + const name = this.details.summary.stretch; this.$store.commit("map/setLayerVisible", LAYERS.STRETCHES); this.$store .dispatch("imports/loadStretch", name)