mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-12 23:42:32 -04:00
[web] Remove unused parameter
This commit is contained in:
parent
709b60858d
commit
0d00df7b7d
@ -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,
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user