aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/server.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 02:21:42 -0400
committerhistoria <[not public]>2026-07-01 02:21:42 -0400
commit5f37dc9b6f6b79da04da70ae0c33ec8d02998587 (patch)
treef7c309e36267a4c456fcf5bca800e614507a80af /internal/admin/server.go
parentfee376102192dc6f24297a7b11324636ace3a07d (diff)
downloadthehouseoficarus-5f37dc9b6f6b79da04da70ae0c33ec8d02998587.tar.gz
feat: qol improvements to items crud in admin gui
Diffstat (limited to 'internal/admin/server.go')
-rw-r--r--internal/admin/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/admin/server.go b/internal/admin/server.go
index df6d5d9..ff2bebd 100644
--- a/internal/admin/server.go
+++ b/internal/admin/server.go
@@ -403,7 +403,7 @@ func (s *AdminServer) doUndo(w http.ResponseWriter, r *http.Request) {
return
}
s.rebuildAfterUndo(change)
- writeJSON(w, map[string]any{"message": "Undid: " + change.Description})
+ writeJSON(w, map[string]any{"message": "Undid: " + change.ShortDesc()})
}
func (s *AdminServer) doRedo(w http.ResponseWriter, r *http.Request) {
@@ -417,7 +417,7 @@ func (s *AdminServer) doRedo(w http.ResponseWriter, r *http.Request) {
return
}
s.rebuildAfterUndo(change)
- writeJSON(w, map[string]any{"message": "Redid: " + change.Description})
+ writeJSON(w, map[string]any{"message": "Redid: " + change.ShortDesc()})
}
func (s *AdminServer) rebuildAfterUndo(change *ChangeDesc) {