summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/PermissionModuleEdit.vue
diff options
context:
space:
mode:
authorChristian Hofmaier2018-08-10 04:06:23 +0200
committerChristian Hofmaier2018-08-10 04:06:23 +0200
commitdf16052a929a4a42b199638270ff732d7cac08c6 (patch)
tree94aca96a61c2b36c917822bd2ce77982dc5042c5 /webapp/src/components/PermissionModuleEdit.vue
parent[permissions] Add recursive group selection + tables changed to search tables (diff)
downloadbas-df16052a929a4a42b199638270ff732d7cac08c6.tar.gz
bas-df16052a929a4a42b199638270ff732d7cac08c6.tar.xz
bas-df16052a929a4a42b199638270ff732d7cac08c6.zip
[permissions] fix bug with recursive-mode-switch
it should now correctly show the underlying value of switch. + centered the switch
Diffstat (limited to 'webapp/src/components/PermissionModuleEdit.vue')
-rw-r--r--webapp/src/components/PermissionModuleEdit.vue13
1 files changed, 8 insertions, 5 deletions
diff --git a/webapp/src/components/PermissionModuleEdit.vue b/webapp/src/components/PermissionModuleEdit.vue
index 8a981ca..558ac7c 100644
--- a/webapp/src/components/PermissionModuleEdit.vue
+++ b/webapp/src/components/PermissionModuleEdit.vue
@@ -128,10 +128,13 @@
</v-stepper-content>
<v-stepper-content step="3" class="stepper-padding-0">
- <v-switch
- :label="$t('recursiveMode')"
- :input-value="recursiveSwitch"
- ></v-switch>
+ <v-flex xs4 offset-xs4>
+ <v-switch
+ :label="$t('recursiveMode')"
+ :input-value="recursiveSwitch"
+ @change="recursiveSwitch = $event"
+ ></v-switch>
+ </v-flex>
<component-search-table v-model="groupsSelected" :headers="groupHeaders" :items="groups" select-all>
<template slot="items" slot-scope="props">
<tr :style="props.color" @click="props.data.selected = !props.data.selected">
@@ -245,7 +248,7 @@ export default {
permissionsSelected: [],
groupsSelected: [],
groupsSummary: [],
- recursiveSwitch: true,
+ recursiveSwitch: false,
permissionHeaders: [
{ text: this.$t('name'), value: 'name' },
{ text: this.$t('description'), value: 'descr' },