summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorUdo Walter2019-02-23 10:13:12 +0100
committerUdo Walter2019-02-23 10:13:12 +0100
commit6f4ce41ba3c9d32a71225ca8b9700266c63edfb1 (patch)
tree0e6abef962680d2ebf8d7990cb18567f5c86b4bd /webapp
parent[webapp/groups] add delete button to groups and clients (diff)
downloadbas-6f4ce41ba3c9d32a71225ca8b9700266c63edfb1.tar.gz
bas-6f4ce41ba3c9d32a71225ca8b9700266c63edfb1.tar.xz
bas-6f4ce41ba3c9d32a71225ca8b9700266c63edfb1.zip
[webapp/groups] small bugfix
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/GroupModuleClientView.vue2
-rw-r--r--webapp/src/components/GroupModuleGroupView.vue4
2 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/components/GroupModuleClientView.vue b/webapp/src/components/GroupModuleClientView.vue
index 4190019..03d9642 100644
--- a/webapp/src/components/GroupModuleClientView.vue
+++ b/webapp/src/components/GroupModuleClientView.vue
@@ -173,7 +173,7 @@ export default {
this.info.ip = this.client.ip
this.info.mac = this.client.mac
this.info.uuid = this.client.uuid
- this.groups = this.client.groups || []
+ this.groups = this.client.groups ? this.client.groups.slice(0) : []
},
cancelEdit () {
this.editMode = false
diff --git a/webapp/src/components/GroupModuleGroupView.vue b/webapp/src/components/GroupModuleGroupView.vue
index dc4ce29..baff66c 100644
--- a/webapp/src/components/GroupModuleGroupView.vue
+++ b/webapp/src/components/GroupModuleGroupView.vue
@@ -198,8 +198,8 @@ export default {
this.info.name = this.group.name
this.info.description = this.group.description
this.info.configId = this.group.configId
- this.parents = this.group.parents.slice(0) || []
- this.ipranges = this.group.ipranges.slice(0) || [{ startIp: '', endIp: '' }]
+ this.parents = this.group.parents ? this.group.parents.slice(0) : []
+ this.ipranges = this.group.ipranges ? this.group.ipranges.slice(0) : [{ startIp: '', endIp: '' }]
},
cancelEdit () {
this.editMode = false