Remove useless stop
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 51s
repod / nodejs (push) Successful in 1m47s

This commit is contained in:
Michel Roux 2024-01-09 22:36:36 +01:00
parent c2d582bdf3
commit 7af1548624

View File

@ -1,30 +1,25 @@
<template>
<div class="controls">
<PauseButton v-if="!player.paused"
class="pointer pause"
class="pointer"
:size="50"
@click="$store.dispatch('player/pause')" />
<PlayButton v-if="player.paused"
class="pointer play"
class="pointer"
:size="50"
@click="$store.dispatch('player/play')" />
<StopButton class="pointer stop"
:size="30"
@click="$store.dispatch('player/stop')" />
</div>
</template>
<script>
import PauseButton from 'vue-material-design-icons/Pause.vue'
import PlayButton from 'vue-material-design-icons/Play.vue'
import StopButton from 'vue-material-design-icons/Stop.vue'
export default {
name: 'Controls',
components: {
PauseButton,
PlayButton,
StopButton,
},
computed: {
player() {
@ -42,10 +37,4 @@ export default {
.pointer {
cursor: pointer;
}
@media only screen and (max-width: 768px) {
.stop {
display: none;
}
}
</style>