Mercurial > gemma
annotate client/src/components/systemconfiguration/Systemconfiguration.vue @ 2419:f374ca26a337 staging_consolidation
removed depency on old component
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 14:03:07 +0100 |
parents | f185503ef35a |
children | bb5286acfee2 |
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"> | |
2387
f185503ef35a
client: unified box's header styles by creating a reusable component
Markus Kottlaender <markus@intevation.de>
parents:
2277
diff
changeset
|
5 <UIBoxHeader icon="wrench" title="Systemconfiguration" /> |
2213 | 6 <div class="card-body text-left"> |
2247
e6fba449aa3c
merged pdf-export in default
Markus Kottlaender <markus@intevation.de>
parents:
2228
diff
changeset
|
7 <PDFTemplates /> |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
8 <ColorSettings v-if="isSysAdmin" /> |
2213 | 9 </div> |
10 <!-- card-body --> | |
11 </div> | |
12 </div> | |
13 </template> | |
14 | |
15 <style scoped lang="scss"> | |
16 .sysconfig { | |
17 margin-right: $offset; | |
18 width: 100%; | |
19 height: 100%; | |
20 } | |
21 </style> | |
22 | |
23 <script> | |
24 /* This is Free Software under GNU Affero General Public License v >= 3.0 | |
25 * without warranty, see README.md and license for details. | |
26 * | |
27 * SPDX-License-Identifier: AGPL-3.0-or-later | |
28 * License-Filename: LICENSES/AGPL-3.0.txt | |
29 * | |
30 * Copyright (C) 2018 by via donau | |
31 * – Österreichische Wasserstraßen-Gesellschaft mbH | |
32 * Software engineering by Intevation GmbH | |
33 * | |
34 * Author(s): | |
35 * Thomas Junk <thomas.junk@intevation.de> | |
36 * Bernhard Reiter <bernhard@intevation.de> | |
2276
920fba6eef0d
moved color settings into own component
Markus Kottlaender <markus@intevation.de>
parents:
2247
diff
changeset
|
37 * Markus Kottländer <markus@intevation.de> |
2213 | 38 */ |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
39 import { mapGetters } from "vuex"; |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
40 |
2213 | 41 export default { |
42 name: "systemconfiguration", | |
43 components: { | |
44 Spacer: () => import("../Spacer"), | |
2276
920fba6eef0d
moved color settings into own component
Markus Kottlaender <markus@intevation.de>
parents:
2247
diff
changeset
|
45 PDFTemplates: () => import("./PDFTemplates"), |
920fba6eef0d
moved color settings into own component
Markus Kottlaender <markus@intevation.de>
parents:
2247
diff
changeset
|
46 ColorSettings: () => import("./ColorSettings") |
2277
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
47 }, |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
48 computed: { |
5f3110aa1ad1
made configuration page accessible for waterway admins
Markus Kottlaender <markus@intevation.de>
parents:
2276
diff
changeset
|
49 ...mapGetters("user", ["isSysAdmin"]) |
2213 | 50 } |
51 }; | |
52 </script> |