summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/GroupModuleGroupView.vue
diff options
context:
space:
mode:
authorUdo Walter2018-09-18 11:14:02 +0200
committerUdo Walter2018-09-18 11:14:02 +0200
commit7810e897d9f215c8c282aa88e041ee398b1acb35 (patch)
tree9737b81ab4aa3beb6d73bf7316c0dd03d63d7fd3 /webapp/src/components/GroupModuleGroupView.vue
parent[configurator] add ipxe configurator (diff)
downloadbas-7810e897d9f215c8c282aa88e041ee398b1acb35.tar.gz
bas-7810e897d9f215c8c282aa88e041ee398b1acb35.tar.xz
bas-7810e897d9f215c8c282aa88e041ee398b1acb35.zip
[groups] add ability to set a config for groups and clients
Diffstat (limited to 'webapp/src/components/GroupModuleGroupView.vue')
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue20
1 files changed, 19 insertions, 1 deletions
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index 9da9126..35e4b18 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -8,6 +8,7 @@
"clients": "Clients",
"name": "Name",
"description": "Description",
+ "config": "iPXE Config",
"parents": "Parents"
},
"de": {
@@ -18,6 +19,7 @@
"clients": "Clienten",
"name": "Name",
"description": "Beschreibung",
+ "config": "iPXE Konfiguration",
"parents": "Übergruppen"
}
}
@@ -67,6 +69,13 @@
</div>
</div>
</v-flex>
+ <v-flex>
+ <v-select v-if="editMode" class="info-input" prepend-icon="list" item-text="name" item-value="id" offset-y :label="$t('config')" color="primary" v-model="info.configId" :items="configList"></v-select>
+ <div v-else class="info-input">
+ <div class="body-2 info-heading"><v-icon>list</v-icon><span>{{ $t('config') }}</span></div>
+ <div class="info-text">{{ configName || '-' }}</div>
+ </div>
+ </v-flex>
</v-layout>
</v-flex>
<v-flex lg4 md6 xs12 order-lg2 order-xs3>
@@ -128,11 +137,20 @@ export default {
editMode: false,
info: {
name: '',
- description: ''
+ description: '',
+ configId: null
},
parentIds: []
}
},
+ computed: {
+ configList () {
+ return this.$store.state.groups.configList
+ },
+ configName () {
+ return this.$store.state.groups.configNames[this.group.configId]
+ }
+ },
watch: {
group (newValue, oldValue) {
if (newValue.id === 'create') this.editInfo()