diff --git a/CHANGELOG.md b/CHANGELOG.md index 717b77fb9a..f1821526ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ #### Fixes - Add support for new synology download station api. Credits to Benjv. ([9555](https://github.com/pymedusa/Medusa/pull/9555)) +- Fix shows not being removed from UI. ([9563](https://github.com/pymedusa/Medusa/pull/9563)) ----- diff --git a/medusa/queues/show_queue.py b/medusa/queues/show_queue.py index fe85d60338..e1cfdd492f 100644 --- a/medusa/queues/show_queue.py +++ b/medusa/queues/show_queue.py @@ -950,6 +950,9 @@ def run(self): log.exception('Exception occurred while trying to delete show {show}, error: {error', {'show': self.show.name, 'error': error}) + # Send showRemoved to frontend, so we can remove it from localStorage. + ws.Message('QueueItemShowRemove', self.show.to_json(detailed=False)).push() # Send ws update to client + self.show.delete_show(full=self.full) self.finish() diff --git a/medusa/server/web/home/handler.py b/medusa/server/web/home/handler.py index c0787484fd..8c40c37d9a 100644 --- a/medusa/server/web/home/handler.py +++ b/medusa/server/web/home/handler.py @@ -1042,9 +1042,6 @@ def deleteShow(self, showslug=None, full=0): # Remove show from 'RECENT SHOWS' in 'Shows' menu app.SHOWS_RECENT = [show for show in app.SHOWS_RECENT if show['showSlug'] != showslug] - # Don't redirect to the default page, so the user can confirm that the show was deleted - return self.redirect('/home/') - def refreshShow(self, showslug=None): # @TODO: Replace with status=refresh from PATCH /api/v2/show/{id} identifier = SeriesIdentifier.from_slug(showslug) diff --git a/themes-default/slim/src/components/sub-menu.vue b/themes-default/slim/src/components/sub-menu.vue index bd87008ceb..7430105fb0 100644 --- a/themes-default/slim/src/components/sub-menu.vue +++ b/themes-default/slim/src/components/sub-menu.vue @@ -21,7 +21,8 @@