diff --git a/client-nuxt/components/GenericTable.vue b/client-nuxt/components/GenericTable.vue index 8891349857cc727882449e9cb375208fa808e693..f1b1a1d07710f1eb8c92bba88d3e3d2fc43fc427 100644 --- a/client-nuxt/components/GenericTable.vue +++ b/client-nuxt/components/GenericTable.vue @@ -62,6 +62,7 @@ import InvocationState from './InvocationState.vue' export default { components: { AnalysisState, InvocationState }, props: { + type: { type: String, default: null }, items: { type: Array, default: () => [] }, headers: { type: Array, default: () => [] }, sortBy: { type: Array, default: () => [] }, @@ -82,10 +83,22 @@ export default { return 'is-route' }, goToProject(project) { - this.$router.push({ - name: 'projects-id', - params: { id: project.id }, - }) + if (this.type === 'experiments') { + this.$router.push({ + name: 'projects-id-experiments', + params: { id: project.id }, + }) + } else if (this.type === 'analysis') { + this.$router.push({ + name: 'projects-id-analysis', + params: { id: project.id }, + }) + } else { + this.$router.push({ + name: 'projects-id', + params: { id: project.id }, + }) + } }, goToExperiment(project, experiment) { this.$router.push({ diff --git a/client-nuxt/pages/analysis.vue b/client-nuxt/pages/analysis.vue index 5e7734be751c2fff6b678a8e664ffd3869cd6df6..d22ac86440f9d04e7c5733a45d608ea1cebc35ab 100644 --- a/client-nuxt/pages/analysis.vue +++ b/client-nuxt/pages/analysis.vue @@ -1,6 +1,7 @@ <template> <v-card> <generic-table + type="analysis" :items="sanitizedAnalysis" :headers="headers" :sort-by="['id']" diff --git a/client-nuxt/pages/experiments.vue b/client-nuxt/pages/experiments.vue index 292bf09edda3cf594b598a851ab4911c8ae0614e..7a56d8cdc4b4f0188c3d0f22542bee509198c46d 100644 --- a/client-nuxt/pages/experiments.vue +++ b/client-nuxt/pages/experiments.vue @@ -1,6 +1,7 @@ <template> <v-card> <generic-table + type="experiments" :items="sanitizedExperiments" :headers="headers" :sort-by="['id']"