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:
2026-02-11 22:40:34 -05:00
parent 17495d4883
commit 2c077907e9
+1 -1
View File
@@ -66,7 +66,7 @@ registerRoute({
});
// Register plugin settings
registerPluginSettings('polaris', PolarisSettings);
registerPluginSettings('headlamp-polaris-plugin', PolarisSettings, true);
// Register details view section for supported controller types
registerDetailsViewSection(({ resource }) => {