[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 [
{
files: ['src/**/*.js', 'src/**/.vue'],
languageOptions: {
globals: {
...globals.node
}
}
languageOptions: { globals: { ...globals.node } }
},
eslintConfigPrettier,
js.configs.all,

View File

@ -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) {

View File

@ -7,7 +7,7 @@
<template v-if="isNowPlayingPage">
<control-player-previous class="navbar-item ml-auto" />
<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-next class="navbar-item mr-auto" />
</template>
@ -31,7 +31,7 @@
/>
</div>
</control-link>
<control-player-play class="navbar-item" show_disabled_message />
<control-player-play class="navbar-item" />
</template>
<a class="navbar-item" @click="uiStore.togglePlayerMenu">
<mdicon