Mercurial > gemma
annotate client/src/components/systemconfiguration/Systemconfiguration.vue @ 2277:5f3110aa1ad1
made configuration page accessible for waterway admins
User roles define what the configuration page shows.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 15 Feb 2019 10:57:50 +0100 |
parents | 920fba6eef0d |
children | f185503ef35a |
rev | line source |
---|---|
2213 | 1 <template> |
2 <div class="d-flex flex-row"> | |
3 <Spacer></Spacer> | |
4 <div class="card sysconfig mt-3 shadow-xs"> | |
5 <h6 | |
6 class="mb-0 py-2 px-3 border-bottom d-flex text-info align-items-center" | |
7 > | |
8 <font-awesome-icon icon="wrench" class="mr-2"></font-awesome-icon> | |
9 <translate class="headline">Systemconfiguration</translate> | |
10 </h6> | |
11 <div class="card-body text-left"> | |
2247
e6fba449aa3c
merged pdf-export in default
Markus Kottlaender <markus@intevation.de>
parents:
2228
diff
changeset
|
12 <PDFTemplates /> |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
13 <ColorSettings v-if="isSysAdmin" /> |
2213 | 14 </div> |
15 <!-- card-body --> | |
16 </div> | |
17 </div> | |
18 </template> | |
19 | |
20 <style scoped lang="scss"> | |
21 .sysconfig { | |
22 margin-right: $offset; | |
23 width: 100%; | |
24 height: 100%; | |
25 } | |
26 </style> | |
27 | |
28 <script> | |
29 /* This is Free Software under GNU Affero General Public License v >= 3.0 | |
30 * without warranty, see README.md and license for details. | |
31 * | |
32 * SPDX-License-Identifier: AGPL-3.0-or-later | |
33 * License-Filename: LICENSES/AGPL-3.0.txt | |
34 * | |
35 * Copyright (C) 2018 by via donau | |
36 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
37 * Software engineering by Intevation GmbH | |
38 * | |
39 * Author(s): | |
40 * Thomas Junk <thomas.junk@intevation.de> | |
41 * Bernhard Reiter <bernhard@intevation.de> | |
2276
920fba6eef0d
moved color settings into own component
Markus Kottlaender <markus@intevation.de>
parents:
2247
diff
changeset
|
42 * Markus Kottländer <markus@intevation.de> |
2213 | 43 */ |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
44 import { mapGetters } from "vuex"; |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
45 |
2213 | 46 export default { |
47 name: "systemconfiguration", | |
48 components: { | |
49 Spacer: () => import("../Spacer"), | |
2276
920fba6eef0d
moved color settings into own component
Markus Kottlaender <markus@intevation.de>
parents:
2247
diff
changeset
|
50 PDFTemplates: () => import("./PDFTemplates"), |
920fba6eef0d
moved color settings into own component
Markus Kottlaender <markus@intevation.de>
parents:
2247
diff
changeset
|
51 ColorSettings: () => import("./ColorSettings") |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
52 }, |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
53 computed: { |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
54 ...mapGetters("user", ["isSysAdmin"]) |
2213 | 55 } |
56 }; | |
57 </script> |