fix(generator): bundles double click and uncheck services
All checks were successful
deploy to prod / Build and deploy site (push) Successful in 35s
All checks were successful
deploy to prod / Build and deploy site (push) Successful in 35s
This commit is contained in:
parent
2581265ded
commit
5efd795211
1 changed files with 16 additions and 7 deletions
|
@ -86,12 +86,21 @@ export default {
|
|||
this.networkingDomain = ''
|
||||
}
|
||||
},
|
||||
selectServices(services) {
|
||||
selectServices(bundleId, services) {
|
||||
if (this.nixinBundles.includes(bundleId)) {
|
||||
services.forEach((s) => {
|
||||
if (this.nixinServices.indexOf(s) === -1) {
|
||||
this.nixinServices.push(s)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
services.forEach((s) => {
|
||||
const index = this.nixinServices.indexOf(s);
|
||||
if (index > -1) {
|
||||
this.nixinServices.splice(index, 1);
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +153,7 @@ export default {
|
|||
<div v-for="bundle in availableBundles">
|
||||
<label>
|
||||
<input type="checkbox" v-model="nixinBundles" :id="bundle.id" :value="bundle.id"
|
||||
@click="selectServices(bundle.services)" />
|
||||
@change="selectServices(bundle.id, bundle.services)" />
|
||||
{{ bundle.name }}
|
||||
</label>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue