use cookie over path for namespace

This commit is contained in:
Bel LaPointe
2022-02-18 07:10:08 -07:00
parent 08dfb715d3
commit 44d548c603
3 changed files with 7 additions and 3 deletions

View File

@@ -2,7 +2,8 @@
<script>
function setNamespace() {
document.getElementById("namespace").disabled = true
window.location.href = `${window.location.protocol}`+"//"+`${window.location.host}/ui/files/${document.getElementById("namespace").value}`
document.cookie = "namespace=" + document.getElementById("namespace").value
window.location.href = `${window.location.protocol}`+"//"+`${window.location.host}/ui/files`
}
</script>
{{ if .This.Namespaces }}