You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by kr...@apache.org on 2019/01/25 18:46:32 UTC
[knox] branch master updated: KNOX-1750 - Unable to view descriptor
service params
This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new f17167d KNOX-1750 - Unable to view descriptor service params
f17167d is described below
commit f17167da59975c81166430e77f8ed935c62aa8ae
Author: Kevin Risden <kr...@apache.org>
AuthorDate: Fri Jan 25 12:55:32 2019 -0500
KNOX-1750 - Unable to view descriptor service params
Signed-off-by: Kevin Risden <kr...@apache.org>
---
gateway-admin-ui/admin-ui/app/resource-detail/descriptor.ts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/gateway-admin-ui/admin-ui/app/resource-detail/descriptor.ts b/gateway-admin-ui/admin-ui/app/resource-detail/descriptor.ts
index 3310f46..6e5a6ca 100644
--- a/gateway-admin-ui/admin-ui/app/resource-detail/descriptor.ts
+++ b/gateway-admin-ui/admin-ui/app/resource-detail/descriptor.ts
@@ -26,14 +26,20 @@ export class Descriptor {
private dirty = false;
- static getServiceParamNames(service: Service): string[] {
+ // getServiceParamNames must not be static since it is used in a view
+ // https://stackoverflow.com/questions/41857047/call-static-function-from-angular2-template
+ // noinspection JSMethodCanBeStatic
+ getServiceParamNames(service: Service): string[] {
if (!service.params) {
service.params = {};
}
return Object.getOwnPropertyNames(service.params);
}
- static getServiceParamValue(service: Service, name: string): string {
+ // getServiceParamValue must not be static since it is used in a view
+ // https://stackoverflow.com/questions/41857047/call-static-function-from-angular2-template
+ // noinspection JSMethodCanBeStatic
+ getServiceParamValue(service: Service, name: string): string {
return service.params[name];
}