mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
display subscription id in tooltip
This commit is contained in:
parent
98adc34ef0
commit
a74491fbe3
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue