Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2276:920fba6eef0d | 2277:5f3110aa1ad1 |
---|---|
8 <font-awesome-icon icon="wrench" class="mr-2"></font-awesome-icon> | 8 <font-awesome-icon icon="wrench" class="mr-2"></font-awesome-icon> |
9 <translate class="headline">Systemconfiguration</translate> | 9 <translate class="headline">Systemconfiguration</translate> |
10 </h6> | 10 </h6> |
11 <div class="card-body text-left"> | 11 <div class="card-body text-left"> |
12 <PDFTemplates /> | 12 <PDFTemplates /> |
13 <ColorSettings /> | 13 <ColorSettings v-if="isSysAdmin" /> |
14 </div> | 14 </div> |
15 <!-- card-body --> | 15 <!-- card-body --> |
16 </div> | 16 </div> |
17 </div> | 17 </div> |
18 </template> | 18 </template> |
39 * Author(s): | 39 * Author(s): |
40 * Thomas Junk <thomas.junk@intevation.de> | 40 * Thomas Junk <thomas.junk@intevation.de> |
41 * Bernhard Reiter <bernhard@intevation.de> | 41 * Bernhard Reiter <bernhard@intevation.de> |
42 * Markus Kottländer <markus@intevation.de> | 42 * Markus Kottländer <markus@intevation.de> |
43 */ | 43 */ |
44 import { mapGetters } from "vuex"; | |
45 | |
44 export default { | 46 export default { |
45 name: "systemconfiguration", | 47 name: "systemconfiguration", |
46 components: { | 48 components: { |
47 Spacer: () => import("../Spacer"), | 49 Spacer: () => import("../Spacer"), |
48 PDFTemplates: () => import("./PDFTemplates"), | 50 PDFTemplates: () => import("./PDFTemplates"), |
49 ColorSettings: () => import("./ColorSettings") | 51 ColorSettings: () => import("./ColorSettings") |
52 }, | |
53 computed: { | |
54 ...mapGetters("user", ["isSysAdmin"]) | |
50 } | 55 } |
51 }; | 56 }; |
52 </script> | 57 </script> |