Skip to content

Commit

Permalink
headlamp-plugin: Add pluginName to install function
Browse files Browse the repository at this point in the history
this patch adds pluginName to the plugin managers
install function

Signed-off-by: yolossn <sannagaraj@microsoft.com>
  • Loading branch information
yolossn committed Jul 8, 2024
1 parent 8733edf commit 2543c95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/App/pluginManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,20 @@ export class PluginManager {
* Sends a request to install a plugin from the specified ArtifactHub URL.
*
* @param {string} identifier - The unique identifier for the plugin.
* @param {string} name - The name of the plugin to be installed.
* @param {string} URL - The URL from where the plugin will be installed.
* @static
* @example
* PluginManager.install('pluginID', ' https://artifacthub.io/packages/headlamp/<repo_name>/<plugin_name>');
*/
static install(identifier: string, URL: string) {
static install(identifier: string, name: string, URL: string) {
window.desktopApi.send(
'plugin-manager',
JSON.stringify({
action: 'INSTALL',
identifier,
URL,
pluginName: name,
})
);
}
Expand Down

0 comments on commit 2543c95

Please sign in to comment.