mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 19:54:44 -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 (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"prism/service/notification"
|
"prism/service/notification"
|
||||||
|
|
@ -22,7 +23,7 @@ func (s *Server) handleDeleteApp(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
util.SetToast(w, "App deleted", "success")
|
util.SetToast(w, fmt.Sprintf("App %s deleted", app), "success")
|
||||||
s.handleFragmentApps(w, r)
|
s.handleFragmentApps(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
hx-target="#apps-list"
|
hx-target="#apps-list"
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
{{.Label}}
|
{{.Label}}
|
||||||
|
<span class="tooltip">Subscription ID: {{(index .Subscriptions 0).ID}}</span>
|
||||||
</button>
|
</button>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button type="button" class="channel-badge channel-{{.Channel}} badge-inactive"
|
<button type="button" class="channel-badge channel-{{.Channel}} badge-inactive"
|
||||||
|
|
@ -31,6 +32,7 @@
|
||||||
{{range .Subscriptions}}
|
{{range .Subscriptions}}
|
||||||
<span class="channel-badge channel-{{$channel.Channel}} badge-subscribed">
|
<span class="channel-badge channel-{{$channel.Channel}} badge-subscribed">
|
||||||
{{$channel.Label}}
|
{{$channel.Label}}
|
||||||
|
<span class="tooltip">Subscription ID: {{.ID}}</span>
|
||||||
<button type="button" class="btn-delete-sub"
|
<button type="button" class="btn-delete-sub"
|
||||||
hx-delete="/apps/{{$app.AppName}}/subscriptions/{{.ID}}"
|
hx-delete="/apps/{{$app.AppName}}/subscriptions/{{.ID}}"
|
||||||
hx-target="#apps-list"
|
hx-target="#apps-list"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue