diff --git a/ui/src/app/shared/services/applications-service.ts b/ui/src/app/shared/services/applications-service.ts index 91ae3aa061d87..5301267b30b29 100644 --- a/ui/src/app/shared/services/applications-service.ts +++ b/ui/src/app/shared/services/applications-service.ts @@ -289,10 +289,11 @@ export class ApplicationsService { .then(res => JSON.parse(res.manifest) as models.State); } - public getResourceActions(name: string, appNamspace: string, resource: models.ResourceNode): Promise { + public getResourceActions(name: string, appNamespace: string, resource: models.ResourceNode): Promise { return requests .get(`/applications/${name}/resource/actions`) .query({ + appNamespace, namespace: resource.namespace, resourceName: resource.name, version: resource.version, @@ -306,10 +307,11 @@ export class ApplicationsService { }); } - public runResourceAction(name: string, appNamspace: string, resource: models.ResourceNode, action: string): Promise { + public runResourceAction(name: string, appNamespace: string, resource: models.ResourceNode, action: string): Promise { return requests .post(`/applications/${name}/resource/actions`) .query({ + appNamespace, namespace: resource.namespace, resourceName: resource.name, version: resource.version,