diff options
author | Raphaël Catarino <raphcatarino@gmail.com> | 2022-03-19 13:52:41 +0100 |
---|---|---|
committer | Raphaël Catarino <raphcatarino@gmail.com> | 2022-03-19 13:52:41 +0100 |
commit | e2ebf9973bec9884154093d6bd7a9688261e6fed (patch) | |
tree | 6280a2013c5ebeab70681cce7d72db85c342880b /src/components | |
parent | 049610bc9178a57732356801e20488cf669eda5e (diff) | |
download | homer-e2ebf9973bec9884154093d6bd7a9688261e6fed.tar.gz homer-e2ebf9973bec9884154093d6bd7a9688261e6fed.tar.zst homer-e2ebf9973bec9884154093d6bd7a9688261e6fed.zip |
select environments
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/Portainer.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/services/Portainer.vue b/src/components/services/Portainer.vue index c7e9962..2e0d1e2 100644 --- a/src/components/services/Portainer.vue +++ b/src/components/services/Portainer.vue | |||
@@ -83,6 +83,12 @@ export default { | |||
83 | 83 | ||
84 | let containers = []; | 84 | let containers = []; |
85 | for (let endpoint of this.endpoints) { | 85 | for (let endpoint of this.endpoints) { |
86 | if ( | ||
87 | this.item.environments && | ||
88 | !this.item.environments.includes(endpoint.Name) | ||
89 | ) { | ||
90 | continue; | ||
91 | } | ||
86 | const uri = `/api/endpoints/${endpoint.Id}/docker/containers/json?all=1`; | 92 | const uri = `/api/endpoints/${endpoint.Id}/docker/containers/json?all=1`; |
87 | const endpointContainers = await this.fetch(uri, { headers }).catch( | 93 | const endpointContainers = await this.fetch(uri, { headers }).catch( |
88 | (e) => { | 94 | (e) => { |