Skip to content

Commit

Permalink
Add back rancher cluster column, make clickable to explorer view
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Nov 27, 2023
1 parent e542288 commit 645b058
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dashboard/pkg/epinio/config/epinio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ export function init($plugin: any, store: any) {
labelKey: 'epinio.instances.tableHeaders.api',
sort: ['api'],
},
{
name: 'rancherCluster',
labelKey: 'epinio.instances.tableHeaders.cluster',
sort: ['mgmtCluster.nameDisplay'],
value: 'mgmtCluster.nameDisplay'
},
]);

headers(EPINIO_TYPES.CONFIGURATION, [
Expand Down
9 changes: 9 additions & 0 deletions dashboard/pkg/epinio/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ export default Vue.extend<Data, any, any, any>({
</template>
</div>
</template>
<template #cell:rancherCluster="{row}">
<div class="epinio-row">
<nuxt-link
:to="{ name: 'c-cluster-explorer', params: { cluster: row.id } }"
>
{{ row.nameDisplay }}
</nuxt-link>
</div>
</template>
</ResourceTable>
</div>
<Dialog
Expand Down

0 comments on commit 645b058

Please sign in to comment.