From ad96321c24c478084a7d583f27eb004cb95d2d5b Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 9 Jan 2022 18:29:24 +0100 Subject: [PATCH] [web-src] Add option to only update a single library source --- web-src/src/App.vue | 17 +++- web-src/src/components/ModalDialogUpdate.vue | 95 ++++++++++++++++++++ web-src/src/components/NavbarTop.vue | 50 +++-------- web-src/src/pages/PageAbout.vue | 44 ++------- web-src/src/pages/PagePodcasts.vue | 18 ++++ web-src/src/store/index.js | 14 ++- web-src/src/store/mutation_types.js | 3 + web-src/src/webapi/index.js | 16 +++- 8 files changed, 175 insertions(+), 82 deletions(-) create mode 100644 web-src/src/components/ModalDialogUpdate.vue diff --git a/web-src/src/App.vue b/web-src/src/App.vue index a4f4b668..d98c4ec9 100644 --- a/web-src/src/App.vue +++ b/web-src/src/App.vue @@ -7,6 +7,9 @@ +
', data () { @@ -53,6 +57,14 @@ export default { set (value) { this.$store.commit(types.SHOW_PLAYER_MENU, value) } + }, + show_update_dialog: { + get () { + return this.$store.state.show_update_dialog + }, + set (value) { + this.$store.commit(types.SHOW_UPDATE_DIALOG, value) + } } }, @@ -181,6 +193,9 @@ export default { webapi.library_count('media_kind is podcast').then(({ data }) => { this.$store.commit(types.UPDATE_LIBRARY_PODCASTS_COUNT, data) }) + webapi.library_count('scan_kind is rss').then(({ data }) => { + this.$store.commit(types.UPDATE_LIBRARY_RSS_COUNT, data) + }) }, update_outputs: function () { diff --git a/web-src/src/components/ModalDialogUpdate.vue b/web-src/src/components/ModalDialogUpdate.vue new file mode 100644 index 00000000..8d2d0eba --- /dev/null +++ b/web-src/src/components/ModalDialogUpdate.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/web-src/src/components/NavbarTop.vue b/web-src/src/components/NavbarTop.vue index 1a1c87d8..6a573386 100644 --- a/web-src/src/components/NavbarTop.vue +++ b/web-src/src/components/NavbarTop.vue @@ -61,7 +61,7 @@
Settings - + Update Library About @@ -72,29 +72,6 @@
- - - -
@@ -103,19 +80,15 @@