fix(webui): hide the memory pages this process cannot serve (#2069)
Quality / check (pull_request) Successful in 3m7s
Quality / check (pull_request) Successful in 3m7s
The dashboard is served by both binaries, and internal/webui serves no /api/memory route. Reporting the memory sections as unavailable drops both pages from the navigation there instead of offering pages whose every read and write answers not found.
This commit is contained in:
1 file changed
+5
@@ -22,6 +22,11 @@ func (s *Server) handleCapabilities(w http.ResponseWriter, r *http.Request) {
|
||||
// and its definition list from the local registry, so it is
|
||||
// worth showing with only the former.
|
||||
"workflows": true,
|
||||
// The memory pages and their admin settings call /api/memory, which
|
||||
// this process does not serve: offering them would answer every read
|
||||
// and write with a not-found.
|
||||
"memory": false,
|
||||
"memory_admin": false,
|
||||
// Configuration renders from whichever source is wired, and only
|
||||
// the system org operates the instance: every other org's
|
||||
// settings pages would offer saves the control plane refuses.
|
||||
|
||||
Reference in new issue
Block a user