Skip to content

Commit cb8ae39

Browse files
committed
Fix todos
1 parent 4881de7 commit cb8ae39

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

dashboard/pkg/epinio/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import epinioRoutes from './routing/epinio-routing';
44
import epinioMgmtStore from './store/epinio-mgmt-store';
55
import epinioStore from './store/epinio-store';
66

7-
const onEnter: OnNavToPackage = async(store, config) => {
8-
await store.dispatch(`${ epinioMgmtStore.config.namespace }/loadManagement`);
7+
const onEnter: OnNavToPackage = async({ getters, dispatch }, config) => {
8+
await dispatch(`${ epinioMgmtStore.config.namespace }/loadManagement`);
99

10-
// TODO: RC no current cluster
11-
// await store.dispatch(`${ epinioStore.config.namespace }/info`);
10+
if (getters['isSingleProduct']) {
11+
dispatch(`${ epinioStore.config.namespace }/info`); // We can get this in the background
12+
}
1213
};
1314

1415
const onLeave: OnNavAwayFromPackage = async(store, config) => {

dashboard/pkg/epinio/pages/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ export default Vue.extend<Data, any, any, any>({
8989
}
9090
});
9191
92-
// this.$store.dispatch('epinio/request', { opt: { url: `/ready` }, clusterId: c.id }) // TODO: RC doesn't exist
93-
// .then(() => this.$store.dispatch(`epinio/request`, { opt: { url: `/api/v1/info` }, clusterId: c.id }))
92+
// Calls to `/ready` currently throw CORS error (but not `/api/v1`). This code block will probably change given auth stuff
93+
// this.$store.dispatch('epinio/request', { opt: { url: `/ready` }, clusterId: c.id })
9494
this.$store.dispatch(`epinio/request`, { opt: { url: `/api/v1/info` }, clusterId: c.id })
95-
.then(() => this.$store.dispatch(`epinio/request`, { opt: { url: `/api/v1/info` }, clusterId: c.id }))
95+
// .then(() => this.$store.dispatch(`epinio/request`, { opt: { url: `/api/v1/info` }, clusterId: c.id }))
9696
.then((res: any) => {
9797
Vue.set(c, 'version', res?.version);
9898
this.setClusterState(c, 'available', { state: { transitioning: false } });

dashboard/pkg/epinio/utils/epinio-discovery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { EPINIO_TYPES } from '../types';
22

33
import { MANAGEMENT } from '@shell/config/types';
4-
import { base64Decode } from '@shell/utils/crypto';
54
import { ingressFullPath } from '@shell/models/networking.k8s.io.ingress';
65
import { allHash } from '@shell/utils/promise';
76

0 commit comments

Comments
 (0)