Mercurial > gemma
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 |
rev | line source |
---|---|
2594 | 1 <template> |
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 | 18 </div> |
19 </template> | |
20 | |
21 <script> | |
22 /* This is Free Software under GNU Affero General Public License v >= 3.0 | |
23 * without warranty, see README.md and license for details. | |
24 * | |
25 * SPDX-License-Identifier: AGPL-3.0-or-later | |
26 * License-Filename: LICENSES/AGPL-3.0.txt | |
27 * | |
28 * Copyright (C) 2018 by via donau | |
29 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
30 * Software engineering by Intevation GmbH | |
31 * | |
32 * Author(s): | |
33 * Thomas Junk <thomas.junk@intevation.de> | |
34 */ | |
35 | |
36 export default { | |
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 | 45 computed: { |
46 kind() { | |
47 return this.entry.kind.toUpperCase(); | |
48 }, | |
49 isFairwayDimension() { | |
50 return this.kind === "FD"; | |
51 }, | |
52 isApprovedGaugeMeasurement() { | |
53 return this.kind === "AGM"; | |
54 }, | |
55 isBottleneck() { | |
56 return this.kind === "BN" || this.kind === "UBN"; | |
57 } | |
58 } | |
2594 | 59 }; |
60 </script> | |
61 | |
2647
c52bf6f994c0
overview2: bottleneckview added
Thomas Junk <thomas.junk@intevation.de>
parents:
2608
diff
changeset
|
62 <style lang="scss" scoped></style> |