# HG changeset patch # User Thomas Junk # Date 1561645668 -7200 # Node ID fd6d62b08af78b2838c29db1477a9b3b484a29c6 # Parent 96ee62fb88fd0c2c51ee2b6ecc94e067c295d05e review_agm: fixed open diff bug. Only selected diff is opened and stays open diff -r 96ee62fb88fd -r fd6d62b08af7 client/src/components/importoverview/AGMLogItem.vue --- a/client/src/components/importoverview/AGMLogItem.vue Thu Jun 27 15:11:02 2019 +0200 +++ b/client/src/components/importoverview/AGMLogItem.vue Thu Jun 27 16:27:48 2019 +0200 @@ -2,7 +2,7 @@
-
+
export default { props: ["line", "index", "showDiff"], - data() { - return { - show: this.index == this.showDiff - }; + computed: { + show() { + return this.index === this.showDiff; + } }, methods: { + toggleShow(index) { + this.$emit("openDiff", index); + }, isNew(result) { return result && result.versions && result.versions.length === 1; }, diff -r 96ee62fb88fd -r fd6d62b08af7 client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue --- a/client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue Thu Jun 27 15:11:02 2019 +0200 +++ b/client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue Thu Jun 27 16:27:48 2019 +0200 @@ -10,6 +10,7 @@