summaryrefslogtreecommitdiffstats
path: root/webapp/src/store/groups.js
diff options
context:
space:
mode:
authorUdo Walter2018-08-02 19:43:24 +0200
committerUdo Walter2018-08-02 19:43:24 +0200
commit8228b952483c1aa489e77fb2ee5380b218ad0b80 (patch)
tree8ff4fadfbf5ab8272214eab2ca2beb5066cd028a /webapp/src/store/groups.js
parent[groups] add dialog to delete, remove and add groups/clients (diff)
downloadbas-8228b952483c1aa489e77fb2ee5380b218ad0b80.tar.gz
bas-8228b952483c1aa489e77fb2ee5380b218ad0b80.tar.xz
bas-8228b952483c1aa489e77fb2ee5380b218ad0b80.zip
eslint fixes
Diffstat (limited to 'webapp/src/store/groups.js')
-rw-r--r--webapp/src/store/groups.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/webapp/src/store/groups.js b/webapp/src/store/groups.js
index a733aac..d11f9fe 100644
--- a/webapp/src/store/groups.js
+++ b/webapp/src/store/groups.js
@@ -120,9 +120,9 @@ export default {
const id = context.state.tabChain[tabIndex].id
const ids = selected.map(x => x.id)
axios.post('/api/groups/removeSubgroups', { id, ids }).then(() => {
- if (context.state.tabChain.length > tabIndex + 1
- && context.state.tabChain[tabIndex + 1].tabType === 'group'
- && ids.includes(context.state.tabChain[tabIndex + 1].id)) {
+ if (context.state.tabChain.length > tabIndex + 1 &&
+ context.state.tabChain[tabIndex + 1].tabType === 'group' &&
+ ids.includes(context.state.tabChain[tabIndex + 1].id)) {
context.commit('deleteFromTabChain', { index: tabIndex + 1, count: context.state.tabChain.length - (tabIndex + 1) })
}
context.dispatch('reload')
@@ -132,9 +132,9 @@ export default {
const id = context.state.tabChain[tabIndex].id
const ids = selected.map(x => x.id)
axios.post('/api/groups/removeClients', { id, ids }).then(() => {
- if (context.state.tabChain.length > tabIndex + 1
- && context.state.tabChain[tabIndex + 1].tabType === 'client'
- && ids.includes(context.state.tabChain[tabIndex + 1].id)) {
+ if (context.state.tabChain.length > tabIndex + 1 &&
+ context.state.tabChain[tabIndex + 1].tabType === 'client' &&
+ ids.includes(context.state.tabChain[tabIndex + 1].id)) {
context.commit('deleteFromTabChain', { index: tabIndex + 1, count: 1 })
}
context.dispatch('reload')