fix: match plugin settings name to deploy dir + fix badge nav URL #55

Closed
ghost wants to merge 3 commits from fix/e2e-settings-name-and-badge-url into main
2 changed files with 4 additions and 3 deletions
Showing only changes of commit bf3bf63db3 - Show all commits
+3 -2
View File
@@ -1,4 +1,4 @@
import { K8s, Router } from '@kinvolk/headlamp-plugin/lib';
import { K8s } from '@kinvolk/headlamp-plugin/lib';
import { useTheme } from '@mui/material/styles';
import React from 'react';
import { useHistory } from 'react-router-dom';
@@ -36,7 +36,8 @@ export default function AppBarScoreBadge() {
};
const handleClick = () => {
history.push(Router.createRouteURL('polaris', { cluster: cluster ?? '' }));
const prefix = cluster ? `/c/${cluster}` : '';
history.push(`${prefix}/polaris`);
};
return (
+1 -1
View File
@@ -99,7 +99,7 @@ registerRoute({
});
// Register plugin settings
registerPluginSettings('headlamp-polaris', PolarisSettings, true);
registerPluginSettings('polaris', PolarisSettings, true);
// Register details view section for supported controller types
registerDetailsViewSection(({ resource }) => {