fix: correct plugin settings registration name and add save button
The plugin settings were not showing because the registration name was incorrect. Changed from 'polaris' to 'headlamp-polaris-plugin' (matching package.json name) and added displaySaveButton=true parameter. According to Headlamp plugin API: registerPluginSettings(name, component, displaySaveButton) The name must match the plugin name from package.json. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ registerRoute({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Register plugin settings
|
// Register plugin settings
|
||||||
registerPluginSettings('polaris', PolarisSettings);
|
registerPluginSettings('headlamp-polaris-plugin', PolarisSettings, true);
|
||||||
|
|
||||||
// Register details view section for supported controller types
|
// Register details view section for supported controller types
|
||||||
registerDetailsViewSection(({ resource }) => {
|
registerDetailsViewSection(({ resource }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user