mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-06 04:23:24 -05:00
611c989b91
All icons, usually next to a text, are now centered vertically.
40 lines
608 B
Vue
40 lines
608 B
Vue
<template>
|
|
<a :class="{ 'is-info': is_consume }" @click="toggle_consume_mode">
|
|
<mdicon
|
|
class="icon"
|
|
name="fire"
|
|
:size="icon_size"
|
|
:title="$t('player.button.consume')"
|
|
/>
|
|
</a>
|
|
</template>
|
|
|
|
<script>
|
|
import webapi from '@/webapi'
|
|
|
|
export default {
|
|
name: 'PlayerButtonConsume',
|
|
|
|
props: {
|
|
icon_size: {
|
|
type: Number,
|
|
default: 16
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
is_consume() {
|
|
return this.$store.state.player.consume
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
toggle_consume_mode() {
|
|
webapi.player_consume(!this.is_consume)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style></style>
|