display subscription id in tooltip

This commit is contained in:
Egor 2026-02-18 00:29:47 -08:00
parent 98adc34ef0
commit a74491fbe3
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,7 @@ package server
import (
"encoding/json"
"fmt"
"net/http"
"prism/service/notification"
@ -22,7 +23,7 @@ func (s *Server) handleDeleteApp(w http.ResponseWriter, r *http.Request) {
return
}
util.SetToast(w, "App deleted", "success")
util.SetToast(w, fmt.Sprintf("App %s deleted", app), "success")
s.handleFragmentApps(w, r)
}

View file

@ -16,6 +16,7 @@
hx-target="#apps-list"
hx-swap="innerHTML">
{{.Label}}
<span class="tooltip">Subscription ID: {{(index .Subscriptions 0).ID}}</span>
</button>
{{else}}
<button type="button" class="channel-badge channel-{{.Channel}} badge-inactive"
@ -31,6 +32,7 @@
{{range .Subscriptions}}
<span class="channel-badge channel-{{$channel.Channel}} badge-subscribed">
{{$channel.Label}}
<span class="tooltip">Subscription ID: {{.ID}}</span>
<button type="button" class="btn-delete-sub"
hx-delete="/apps/{{$app.AppName}}/subscriptions/{{.ID}}"
hx-target="#apps-list"