Skip to content

Commit

Permalink
only load for matter project
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 committed Sep 12, 2024
1 parent d3468bf commit 4861fae
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -294,20 +294,21 @@ export default defineComponent({
// load initial UC component state
this.$store.dispatch(`zap/loadUcComponentState`)
let endpoint = await this.$store.dispatch('zap/loadComposition')
this.$store.dispatch('zap/updateSelectedEndpointType', {
endpointType: this.endpointType[endpoint.id],
deviceTypeRef:
this.endpointDeviceTypeRef[this.endpointType[endpoint.id]]
})
this.$store.dispatch('zap/updateClusters')
let info = this.$store.dispatch(
`zap/endpointTypeClustersInfo`,
this.endpointType[endpoint.id]
)
this.$store.dispatch('zap/updateSelectedEndpoint', info.id)
this.$store.commit('zap/toggleEndpointModal', false)
if (this.enableMatterFeatures()) {
let endpoint = await this.$store.dispatch('zap/loadComposition')
this.$store.dispatch('zap/updateSelectedEndpointType', {
endpointType: this.endpointType[endpoint.id],
deviceTypeRef:
this.endpointDeviceTypeRef[this.endpointType[endpoint.id]]
})
this.$store.dispatch('zap/updateClusters')
let info = this.$store.dispatch(
'zap/endpointTypeClustersInfo',
this.endpointType[endpoint.id]
)
this.$store.dispatch('zap/updateSelectedEndpoint', info.id)
this.$store.commit('zap/toggleEndpointModal', false)
}
// handles UC component state change events
this.$onWebSocket(
Expand Down

0 comments on commit 4861fae

Please sign in to comment.