2016-11-17 08:37:12 +00:00
|
|
|
<template>
|
|
|
|
<span class="song-list-controls-toggler" v-if="isPhone" @click="toggleControls">
|
|
|
|
<i class="fa fa-angle-down toggler" v-show="!showingControls"/>
|
|
|
|
<i class="fa fa-angle-up toggler" v-show="showingControls"/>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2016-11-26 03:25:35 +00:00
|
|
|
import isMobile from 'ismobilejs'
|
2016-11-17 08:37:12 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'shared--song-list-controls-toggler',
|
|
|
|
props: ['showingControls'],
|
|
|
|
|
2016-11-26 03:25:35 +00:00
|
|
|
data () {
|
2016-11-17 08:37:12 +00:00
|
|
|
return {
|
|
|
|
isPhone: isMobile.phone
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2016-11-26 03:25:35 +00:00
|
|
|
toggleControls () {
|
|
|
|
this.$emit('toggleControls')
|
2016-11-17 08:37:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2017-02-14 06:53:02 +00:00
|
|
|
<style lang="scss" scoped>
|
2016-11-17 08:37:12 +00:00
|
|
|
@import "../../../sass/partials/_vars.scss";
|
|
|
|
@import "../../../sass/partials/_mixins.scss";
|
|
|
|
|
|
|
|
.toggler {
|
|
|
|
font-size: 1rem;
|
|
|
|
margin-left: 4px;
|
|
|
|
color: $colorHighlight;
|
|
|
|
}
|
|
|
|
</style>
|