Mercurial > gemma
comparison client/src/components/importoverview/LogDetail.vue @ 2718:eae8ec732101
import_review: only set additional info to 'open' when state is pending
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 19 Mar 2019 10:06:22 +0100 |
parents | 84145179ec72 |
children | 0fe0b3f1720f |
comparison
equal
deleted
inserted
replaced
2717:5b990f612420 | 2718:eae8ec732101 |
---|---|
96 StretchDetail: () => import("./StretchDetails.vue"), | 96 StretchDetail: () => import("./StretchDetails.vue"), |
97 AdditionalDetail: () => import("./AdditionalDetail.vue"), | 97 AdditionalDetail: () => import("./AdditionalDetail.vue"), |
98 AdditionalLog: () => import("./AdditionalLog.vue") | 98 AdditionalLog: () => import("./AdditionalLog.vue") |
99 }, | 99 }, |
100 mounted() { | 100 mounted() { |
101 this.$store.commit("imports/showAdditionalInfoFor", this.entry.id); | 101 if (this.entry.state === "pending") { |
102 this.$store.commit("imports/showAdditionalInfoFor", this.entry.id); | |
103 } | |
102 this.$store.commit("imports/showAdditionalLogsFor", this.entry.id); | 104 this.$store.commit("imports/showAdditionalLogsFor", this.entry.id); |
103 }, | 105 }, |
104 methods: { | 106 methods: { |
105 toggleAdditionalInfo() { | 107 toggleAdditionalInfo() { |
106 if (this.entry.id === this.showAdditional) { | 108 if (this.entry.id === this.showAdditional) { |