Commit f3bf51bc by Johannes Edmeier

Wallboard: show instance details on clicking single-instance application

parent 2626ad3e
......@@ -69,7 +69,11 @@
return 'is-selectable is-light';
},
select(application) {
this.$router.push({name: 'applications', params: {selected: application.name}});
if (application.instances.length === 1) {
this.$router.push({name: 'instance/details', params: {instanceId: application.instances[0].id}});
} else {
this.$router.push({name: 'applications', params: {selected: application.name}});
}
},
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment