diff --git a/CHANGELOG.md b/CHANGELOG.md index 6107cb0a1b..1de6b74122 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Fix Emby notifier error on Python 3 ([#7497](https://github.com/pymedusa/Medusa/pull/7497)) - Fix more qBittorrent authentication bugs ([#7501](https://github.com/pymedusa/Medusa/pull/7501)) - Fix `torrents.verifyCert` config patch ignored warning ([#7501](https://github.com/pymedusa/Medusa/pull/7501)) +- Fix dragging and saving Anime / Series list handles in Home - Poster layout ([#7502](https://github.com/pymedusa/Medusa/pull/7502)) ----- diff --git a/themes-default/slim/src/components/home.vue b/themes-default/slim/src/components/home.vue index 2c0f47738f..93525d4801 100644 --- a/themes-default/slim/src/components/home.vue +++ b/themes-default/slim/src/components/home.vue @@ -116,7 +116,7 @@ export default { }); }, mounted() { - const { config, stateLayout, setConfig } = this; + const { $snotify, config, stateLayout, setConfig } = this; // Resets the tables sorting, needed as we only use a single call for both tables in tablesorter $(document.body).on('click', '.resetsorting', () => { $('table').trigger('filterReset'); @@ -450,7 +450,7 @@ export default { } } }, - update(event) { + async update(event) { const showListOrder = $(event.target.children).map((index, el) => { return $(el).data('list'); }); @@ -460,14 +460,20 @@ export default { showListOrder: showListOrder.toArray() } }; - const section = 'layout'; - setConfig({ section, config: { layout } }) - .then(response => { - console.info(response); - }) - .catch(error => { - console.error(error); - }); + + try { + await setConfig({ section: 'main', config: { layout } }); + $snotify.success( + 'Saved Home poster list type order', + 'Saved', + { timeout: 5000 } + ); + } catch (error) { + $snotify.error( + 'Error while trying to save home poster list type order', + 'Error' + ); + } } }); }; // END initializePage() diff --git a/themes-default/slim/views/home.mako b/themes-default/slim/views/home.mako index 441969b491..6ca73eb77a 100644 --- a/themes-default/slim/views/home.mako +++ b/themes-default/slim/views/home.mako @@ -14,6 +14,7 @@