@things-factory/integration-ui 6.0.10 → 6.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,6 +129,7 @@ export class IntegrationMonitor extends localize(i18next)(PageView) {
129
129
  if ('active' in changes) {
130
130
  if (this.active) {
131
131
  await this.fetchScenarios()
132
+ await this.fetchConnections()
132
133
  await this.startSubscribe()
133
134
  } else {
134
135
  await this.stopSubscribe()
@@ -188,6 +189,37 @@ export class IntegrationMonitor extends localize(i18next)(PageView) {
188
189
  this.colorIndex = colorIndex
189
190
  }
190
191
 
192
+ async fetchConnections() {
193
+ const response = await client.query({
194
+ query: gql`
195
+ query {
196
+ responses: connections {
197
+ items {
198
+ id
199
+ name
200
+ description
201
+ type
202
+ state
203
+ }
204
+ total
205
+ }
206
+ }
207
+ `
208
+ })
209
+
210
+ this.connections = response.data.responses.items || []
211
+ // .map(connection => {
212
+ // var color = toColor(scenario.id)
213
+ // colorIndex[scenario.id] = color
214
+
215
+ // return {
216
+ // ...scenario,
217
+ // color
218
+ // }
219
+ // })
220
+ // this.colorIndex = colorIndex
221
+ }
222
+
191
223
  async startSubscribe() {
192
224
  if (this.scenarioInstanceStateSubscription) {
193
225
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/integration-ui",
3
- "version": "6.0.10",
3
+ "version": "6.0.11",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -38,5 +38,5 @@
38
38
  "@things-factory/integration-base": "^6.0.10",
39
39
  "moment-timezone": "^0.5.40"
40
40
  },
41
- "gitHead": "3c57782afe1c216525d9d42b6e5c4969c177eaea"
41
+ "gitHead": "b7bc6a184d4c74f9c9bdff9c476929701ff5a8a5"
42
42
  }