Skip to content

Commit

Permalink
Fix initialisation of cluster model & re-enter once locally logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Oct 17, 2023
1 parent a6bc810 commit 80f37fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard/pkg/epinio/models/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default class EpinioCluster extends Resource {
loggedIn: boolean,
api: string,
mgmtCluster: any,
}, private store: any) {
super(data, store);
}, ctx: any) {
super(data, ctx);
this.id = data.id;
this.name = data.name;
this.api = data.api;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/pkg/epinio/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class EpinioAuth {
async isLoggedIn(config: EpinioAuthConfig) {
if (!config || (config.type === EpinioAuthTypes.LOCAL || config.type === EpinioAuthTypes.AGNOSTIC)) {
if (this.isLocal()) {
return;
return true;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dashboard/pkg/epinio/utils/epinio-discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
api: url,
loggedIn: !!loggedIn,
mgmtCluster: c
}, store));
}, { rootGetters: store.getters }));
} catch (err) {
console.info(`Skipping epinio discovery for ${ c.spec.displayName }`, err); // eslint-disable-line no-console
}
Expand Down

0 comments on commit 80f37fb

Please sign in to comment.