diff --git a/src/main/java/io/discdrop/resource/ArtistResource.java b/src/main/java/io/discdrop/resource/ArtistResource.java index abd569b..e435ba8 100644 --- a/src/main/java/io/discdrop/resource/ArtistResource.java +++ b/src/main/java/io/discdrop/resource/ArtistResource.java @@ -100,7 +100,10 @@ public class ArtistResource { @FormParam("enabled") boolean enabled) { artistService.setTypeEnabled(mbid, primaryType, enabled); CompletableFuture.runAsync(() -> syncService.resyncArtist(mbid)); - return feedFragment(0, true); + FollowedArtist artist = artistService.findArtist(mbid); + List settings = artist != null ? artistService.settingsFor(artist) : List.of(); + return fragments_artist_row.data("artist", artist) + .data("settings", settings); } private TemplateInstance feedFragment(int offset, boolean autoRefresh) { diff --git a/src/main/resources/templates/artists.html b/src/main/resources/templates/artists.html index da7aff5..628d562 100644 --- a/src/main/resources/templates/artists.html +++ b/src/main/resources/templates/artists.html @@ -39,7 +39,11 @@ {#else} {#for artist in artists} -
+
{/for} diff --git a/src/main/resources/templates/fragments/artist-row.html b/src/main/resources/templates/fragments/artist-row.html index 7b568f9..945b660 100644 --- a/src/main/resources/templates/fragments/artist-row.html +++ b/src/main/resources/templates/fragments/artist-row.html @@ -9,7 +9,7 @@