annotate client/src/components/importoverview/AdditionalDetail.vue @ 2894:95e40c87a943

client: applied component name change where it is used
author Markus Kottlaender <markus@intevation.de>
date Tue, 02 Apr 2019 12:17:52 +0200
parents 0ab7985ef008
children 399b03e59411
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <div>
2605
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
3 <FairwayDimensionDetail
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
4 :entry="entry"
2685
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
5 :details="details"
2605
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
6 v-if="isFairwayDimension"
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
7 ></FairwayDimensionDetail>
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
8 <ApprovedGaugeMeasurementDetail
2605
11fd7ee37f10 overview2: added stretch zoom functionality
Thomas Junk <thomas.junk@intevation.de>
parents: 2602
diff changeset
9 :entry="entry"
2685
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
10 :details="details"
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
11 v-if="isApprovedGaugeMeasurement"
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
12 ></ApprovedGaugeMeasurementDetail>
2685
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
13 <BottleneckDetail
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
14 :details="details"
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
15 :entry="entry"
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
16 v-if="isBottleneck"
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
17 ></BottleneckDetail>
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18 </div>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 </template>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 <script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 /* This is Free Software under GNU Affero General Public License v >= 3.0
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 * without warranty, see README.md and license for details.
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 * SPDX-License-Identifier: AGPL-3.0-or-later
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 * License-Filename: LICENSES/AGPL-3.0.txt
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 * Copyright (C) 2018 by via donau
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 * – Österreichische Wasserstraßen-Gesellschaft mbH
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 * Software engineering by Intevation GmbH
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 *
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 * Author(s):
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
33 * Thomas Junk <thomas.junk@intevation.de>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
34 */
2732
0ab7985ef008 import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2685
diff changeset
35 import { mapState } from "vuex";
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 export default {
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 name: "additionaldetail",
2732
0ab7985ef008 import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2685
diff changeset
39 props: ["entry"],
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
40 components: {
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
41 BottleneckDetail: () => import("./BottleneckDetail.vue"),
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
42 ApprovedGaugeMeasurementDetail: () =>
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
43 import("./ApprovedGaugeMeasurementDetail.vue"),
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
44 FairwayDimensionDetail: () => import("./FairwayDimension.vue")
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
45 },
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
46 computed: {
2732
0ab7985ef008 import_review: fixed flakey display of logs
Thomas Junk <thomas.junk@intevation.de>
parents: 2685
diff changeset
47 ...mapState("imports", ["showLogs", "details"]),
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
48 kind() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
49 return this.entry.kind.toUpperCase();
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
50 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
51 isFairwayDimension() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
52 return this.kind === "FD";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
53 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
54 isApprovedGaugeMeasurement() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
55 return this.kind === "AGM";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
56 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
57 isBottleneck() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
58 return this.kind === "BN" || this.kind === "UBN";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
59 }
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
60 }
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 };
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
62 </script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
63
2647
c52bf6f994c0 overview2: bottleneckview added
Thomas Junk <thomas.junk@intevation.de>
parents: 2608
diff changeset
64 <style lang="scss" scoped></style>