Allow to navigate to created resource details from notification (#4422)

navigate to created resource details from notification
This commit is contained in:
Roman authored and GitHub committed 2021-11-25 18:04:41 +02:00
1 parent 44f1f38a75
commit 4f33dfdfd5
4 files changed
+34 -22

No files matched your search

+2 -2
View File
@@ -95,10 +95,10 @@ export class ApiManager {
return this.stores.get(this.resolveApi(api)?.apiBase) as S;
}
lookupApiLink(ref: IKubeObjectRef, parentObject: KubeObject): string {
lookupApiLink(ref: IKubeObjectRef, parentObject?: KubeObject): string {
const {
kind, apiVersion, name,
namespace = parentObject.getNs(),
namespace = parentObject?.getNs(),
} = ref;
if (!kind) return "";