[web] Remove unused parameter

This commit is contained in:
Alain Nussbaumer 2025-03-22 16:19:09 +01:00
parent 709b60858d
commit 0d00df7b7d
3 changed files with 9 additions and 18 deletions

View File

@ -6,11 +6,7 @@ import pluginVue from 'eslint-plugin-vue'
export default [ export default [
{ {
files: ['src/**/*.js', 'src/**/.vue'], files: ['src/**/*.js', 'src/**/.vue'],
languageOptions: { languageOptions: { globals: { ...globals.node } }
globals: {
...globals.node
}
}
}, },
eslintConfigPrettier, eslintConfigPrettier,
js.configs.all, js.configs.all,

View File

@ -12,9 +12,6 @@ import webapi from '@/webapi'
export default { export default {
name: 'ControlPlayerPlay', name: 'ControlPlayerPlay',
props: {
show_disabled_message: Boolean
},
setup() { setup() {
return { return {
notificationsStore: useNotificationsStore(), notificationsStore: useNotificationsStore(),
@ -38,14 +35,12 @@ export default {
methods: { methods: {
toggle() { toggle() {
if (this.disabled) { if (this.disabled) {
if (this.show_disabled_message) { this.notificationsStore.add({
this.notificationsStore.add({ text: this.$t('server.empty-queue'),
text: this.$t('server.empty-queue'), timeout: 2000,
timeout: 2000, topic: 'connection',
topic: 'connection', type: 'info'
type: 'info' })
})
}
return return
} }
if (this.playerStore.isPlaying && this.queueStore.isPauseAllowed) { if (this.playerStore.isPlaying && this.queueStore.isPauseAllowed) {

View File

@ -7,7 +7,7 @@
<template v-if="isNowPlayingPage"> <template v-if="isNowPlayingPage">
<control-player-previous class="navbar-item ml-auto" /> <control-player-previous class="navbar-item ml-auto" />
<control-player-back class="navbar-item" :offset="10000" /> <control-player-back class="navbar-item" :offset="10000" />
<control-player-play class="navbar-item" show_disabled_message /> <control-player-play class="navbar-item" />
<control-player-forward class="navbar-item" :offset="30000" /> <control-player-forward class="navbar-item" :offset="30000" />
<control-player-next class="navbar-item mr-auto" /> <control-player-next class="navbar-item mr-auto" />
</template> </template>
@ -31,7 +31,7 @@
/> />
</div> </div>
</control-link> </control-link>
<control-player-play class="navbar-item" show_disabled_message /> <control-player-play class="navbar-item" />
</template> </template>
<a class="navbar-item" @click="uiStore.togglePlayerMenu"> <a class="navbar-item" @click="uiStore.togglePlayerMenu">
<mdicon <mdicon