Skip to content

Commit

Permalink
Merge pull request #1771 from headlamp-k8s/fix-plugins-enable-button
Browse files Browse the repository at this point in the history
frontend plugins: Fix enable button disappearing
  • Loading branch information
joaquimrocha authored Mar 6, 2024
2 parents 63bfbef + 1565368 commit 041a8b6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions frontend/src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,18 @@ export async function fetchAndExecutePlugins(

if (Object.keys(incompatiblePlugins).length > 0) {
onIncompatible(incompatiblePlugins);
const packagesIncompatibleSet: PluginInfo[] = updatedSettingsPackages.map(
(plugin: PluginInfo) => {
return {
...plugin,
isCompatible: !incompatiblePlugins[plugin.name],
};
}
);
onSettingsChange(packagesIncompatibleSet);
}

const packagesIncompatibleSet: PluginInfo[] = updatedSettingsPackages.map(
(plugin: PluginInfo) => {
return {
...plugin,
isCompatible: !incompatiblePlugins[plugin.name],
};
}
);
onSettingsChange(packagesIncompatibleSet);

sourcesToExecute.forEach((source, index) => {
// Execute plugins inside a context (not in global/window)
(function (str: string) {
Expand Down

0 comments on commit 041a8b6

Please sign in to comment.