Use namespace defined in kubeconfig as default in install view (#99)

* respect defualt namespace from kubeconfig

* respect defualt namespace from kubeconfig

* Replace exists with available - avoid confusion in status

* use data attribute

* remove commented line

* fix
This commit is contained in:
ronahk
2022-11-16 13:50:32 +02:00
committed by GitHub
parent d0dbb42492
commit 34a7dc57b2
3 changed files with 5 additions and 3 deletions

View File

@@ -130,6 +130,8 @@ function repoChartClicked() {
setHashParam("chart", elm.installed_name)
window.location.reload()
} else {
popUpUpgrade(elm)
const contexts = $("body").data("contexts")
contextNamespace = contexts.filter(obj => {return obj.Name === getHashParam("context")})[0].Namespace
popUpUpgrade(elm, contextNamespace)
}
}