diff --git a/src/renderer/components/Clusters.vue b/src/renderer/components/Clusters.vue
index 3b71601..74f594b 100644
--- a/src/renderer/components/Clusters.vue
+++ b/src/renderer/components/Clusters.vue
@@ -20,6 +20,8 @@
Show All Clusters
Collapse All Clusters
+ Start all
+ Stop all
@@ -145,7 +147,19 @@ export default {
this.clustersToRender.forEach(cluster => {
this.updateCluster({ id: cluster.id, folded })
})
- }
+ },
+ startAll() {
+ const services = Object.values(this.$store.state.Services.items)
+ services.forEach(service => {
+ this.$store.dispatch('Connections/createConnection', service)
+ })
+ },
+ stopAll() {
+ const services = Object.values(this.$store.state.Services.items)
+ services.forEach(service => {
+ this.$store.dispatch('Connections/deleteConnection', service)
+ })
+ },
}
}
diff --git a/src/renderer/components/Clusters/ClusterItem.vue b/src/renderer/components/Clusters/ClusterItem.vue
index da0ad79..1061418 100644
--- a/src/renderer/components/Clusters/ClusterItem.vue
+++ b/src/renderer/components/Clusters/ClusterItem.vue
@@ -16,6 +16,8 @@
Add a Resource
Edit
Export
+ Start all
+ Stop all
Collapse
Delete
@@ -130,6 +132,16 @@ export default {
}
}
}
+ },
+ startAll() {
+ this.services.forEach(service => {
+ this.$store.dispatch('Connections/createConnection', service)
+ })
+ },
+ stopAll() {
+ this.services.forEach(service => {
+ this.$store.dispatch('Connections/deleteConnection', service)
+ })
}
}
}