v9.45: fix instanceName undefined — add missing helper for navBack label

This commit is contained in:
Naeel
2026-04-17 09:00:27 +03:00
parent f6d15eb7e8
commit 5820ab0731
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ spec:
spec: spec:
containers: containers:
- name: cloud-dashboard - name: cloud-dashboard
image: naeel/cloud-dashboard:v9.44 image: naeel/cloud-dashboard:v9.45
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8080 - containerPort: 8080
+5
View File
@@ -973,6 +973,11 @@ function navigateToDep(uid){
row.scrollIntoView({behavior:"smooth", block:"center"}); row.scrollIntoView({behavior:"smooth", block:"center"});
} }
function instanceName(uid){
var inst = allInstances.find(function(i){ return i.uid === uid; });
return inst ? (inst.displayName || uid) : uid;
}
function navBack(){ function navBack(){
var uid = navBackUid; var uid = navBackUid;
navBackUid = null; navBackUid = null;