annotate client/src/components/importoverview/AdditionalDetail.vue @ 2698:472f4c6a1ec0

Sidebar: set count of pending imports correctly
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 18 Mar 2019 11:32:27 +0100
parents 39a05f8c34e6
children 0ab7985ef008
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 */
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 export default {
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 name: "additionaldetail",
2685
39a05f8c34e6 import_overview: Refactoring of detailed information.
Thomas Junk <thomas.junk@intevation.de>
parents: 2647
diff changeset
38 props: ["entry", "details"],
2602
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
39 components: {
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
40 BottleneckDetail: () => import("./BottleneckDetail.vue"),
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
41 ApprovedGaugeMeasurementDetail: () =>
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
42 import("./ApprovedGaugeMeasurementDetail.vue"),
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
43 FairwayDimensionDetail: () => import("./FairwayDimension.vue")
5d0e5159190f overview2: detail components for unified log
Thomas Junk <thomas.junk@intevation.de>
parents: 2601
diff changeset
44 },
2601
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
45 computed: {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
46 kind() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
47 return this.entry.kind.toUpperCase();
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
48 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
49 isFairwayDimension() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
50 return this.kind === "FD";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
51 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
52 isApprovedGaugeMeasurement() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
53 return this.kind === "AGM";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
54 },
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
55 isBottleneck() {
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
56 return this.kind === "BN" || this.kind === "UBN";
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
57 }
b9523d876d01 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents: 2594
diff changeset
58 }
2594
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
59 };
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 </script>
ecec6d5aae00 overview2 WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61
2647
c52bf6f994c0 overview2: bottleneckview added
Thomas Junk <thomas.junk@intevation.de>
parents: 2608
diff changeset
62 <style lang="scss" scoped></style>