From 936b7f7b5d62c662109fe664f7c22048ee732a74 Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 25 Aug 2019 08:17:44 +0200 Subject: [PATCH] [web-src] Style change for update and rescan buttons in About page --- web-src/src/mystyles.css | 8 +++++++ web-src/src/pages/PageAbout.vue | 40 ++++++++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/web-src/src/mystyles.css b/web-src/src/mystyles.css index f72731f0..9a44f3b7 100644 --- a/web-src/src/mystyles.css +++ b/web-src/src/mystyles.css @@ -180,3 +180,11 @@ section.fd-tabs-section + section.fd-content { margin-left: 16px; margin-right: 16px; } + +.dropdown-item a { + display: block; +} + +.dropdown-item:hover { + background-color: hsl(0, 0%, 96%) +} diff --git a/web-src/src/pages/PageAbout.vue b/web-src/src/pages/PageAbout.vue index a30eb697..4c02d762 100644 --- a/web-src/src/pages/PageAbout.vue +++ b/web-src/src/pages/PageAbout.vue @@ -24,9 +24,35 @@ -
- Update - Force Meta Rescan + @@ -84,6 +110,12 @@ import webapi from '@/webapi' export default { name: 'PageAbout', + data () { + return { + show_update_dropdown: false + } + }, + computed: { config () { return this.$store.state.config @@ -95,10 +127,12 @@ export default { methods: { update: function () { + this.show_update_dropdown = false webapi.library_update() }, update_meta: function () { + this.show_update_dropdown = false webapi.library_rescan() } },