Skip to content

Commit

Permalink
* can go back to endpoint config from extensions and options
Browse files Browse the repository at this point in the history
* switching to a cluster always takes user back to list of clusters (cluster manager)
  • Loading branch information
dhchandw committed Sep 6, 2024
1 parent 5cb3169 commit 43e518f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/components/ZclEndpointCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ limitations under the License.
<div class="q-mx-md q-mb-sm">
<q-card
:class="{ 'active v-step-5': isSelectedEndpoint }"
@click="setSelectedEndpointType(endpointReference)"
@click="handleEndpointCardClick(endpointReference)"
flat
>
<div
Expand Down Expand Up @@ -408,6 +408,17 @@ export default {
this.selectedReporting.push(resolvedReference)
})
})
},
/**
* Handles the click event on the endpoint card.
* Updates the current endpoint and navigates to cluster manager view.
* @param {number} endpointReference The endpoint reference.
*/
handleEndpointCardClick(endpointReference) {
this.setSelectedEndpointType(endpointReference)
if (this.$route.path !== '/') {
this.$router.push({ path: '/' })
}
}
},
computed: {
Expand Down

0 comments on commit 43e518f

Please sign in to comment.