Lock the right pane while focused, add project focus, quiet lead
This commit is contained in:
@@ -80,3 +80,12 @@ func (s *Server) SetFocus(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
writeJSON(w, http.StatusOK, f)
|
||||
}
|
||||
|
||||
func (s *Server) SetPaneFocus(w http.ResponseWriter, r *http.Request) {
|
||||
p := api.PaneFocus{}
|
||||
if !readJSON(w, r, &p) {
|
||||
return
|
||||
}
|
||||
s.agents.SetPaneFocus(actor(r), p.Focused)
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user