From 0d00df7b7d966d20dadee173e17d116bf3f84ac9 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Sat, 22 Mar 2025 16:19:09 +0100 Subject: [PATCH] [web] Remove unused parameter --- web-src/eslint.config.js | 6 +----- web-src/src/components/ControlPlayerPlay.vue | 17 ++++++----------- web-src/src/components/NavbarBottom.vue | 4 ++-- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/web-src/eslint.config.js b/web-src/eslint.config.js index c7235398..9f0c6a6c 100644 --- a/web-src/eslint.config.js +++ b/web-src/eslint.config.js @@ -6,11 +6,7 @@ import pluginVue from 'eslint-plugin-vue' export default [ { files: ['src/**/*.js', 'src/**/.vue'], - languageOptions: { - globals: { - ...globals.node - } - } + languageOptions: { globals: { ...globals.node } } }, eslintConfigPrettier, js.configs.all, diff --git a/web-src/src/components/ControlPlayerPlay.vue b/web-src/src/components/ControlPlayerPlay.vue index 1e41c4a3..9fb214fe 100644 --- a/web-src/src/components/ControlPlayerPlay.vue +++ b/web-src/src/components/ControlPlayerPlay.vue @@ -12,9 +12,6 @@ import webapi from '@/webapi' export default { name: 'ControlPlayerPlay', - props: { - show_disabled_message: Boolean - }, setup() { return { notificationsStore: useNotificationsStore(), @@ -38,14 +35,12 @@ export default { methods: { toggle() { if (this.disabled) { - if (this.show_disabled_message) { - this.notificationsStore.add({ - text: this.$t('server.empty-queue'), - timeout: 2000, - topic: 'connection', - type: 'info' - }) - } + this.notificationsStore.add({ + text: this.$t('server.empty-queue'), + timeout: 2000, + topic: 'connection', + type: 'info' + }) return } if (this.playerStore.isPlaying && this.queueStore.isPauseAllowed) { diff --git a/web-src/src/components/NavbarBottom.vue b/web-src/src/components/NavbarBottom.vue index fcbdd850..c592e60e 100644 --- a/web-src/src/components/NavbarBottom.vue +++ b/web-src/src/components/NavbarBottom.vue @@ -7,7 +7,7 @@ @@ -31,7 +31,7 @@ /> - +