feat: complete Task 3 - update web UI and handlers for Live/Remix filtering
This commit is contained in:
@@ -58,6 +58,9 @@ func NewServer(cfg *config.ServerConfig, db *database.DB, uiBaseURL string, thre
|
||||
mux.HandleFunc("/artist/{id}/ignore", s.ignoreOrRestore)
|
||||
mux.HandleFunc("/artist/{id}/restore", s.ignoreOrRestore)
|
||||
mux.HandleFunc("/artist/{id}/ignore-singles", s.toggleIgnoreSingles)
|
||||
mux.HandleFunc("/artist/{id}/ignore-compilations", s.toggleIgnoreCompilations)
|
||||
mux.HandleFunc("/artist/{id}/ignore-live", s.toggleIgnoreLive)
|
||||
mux.HandleFunc("/artist/{id}/ignore-remix", s.toggleIgnoreRemix)
|
||||
mux.HandleFunc("/archive", s.handleArchive)
|
||||
s.mux = mux
|
||||
return s
|
||||
@@ -171,11 +174,11 @@ func (s *Server) sameOrigin(r *http.Request) bool {
|
||||
// ArtistSummary is the dashboard projection of a single monitored artist and
|
||||
// its missing-release count.
|
||||
type ArtistSummary struct {
|
||||
ID string
|
||||
Name string
|
||||
MBID string
|
||||
MissingCount int
|
||||
Monitored bool
|
||||
ID string
|
||||
Name string
|
||||
MBID string
|
||||
MissingCount int
|
||||
Monitored bool
|
||||
}
|
||||
|
||||
// DashboardData is the view model passed to the dashboard template.
|
||||
|
||||
Reference in New Issue
Block a user