koel/resources/assets/js/components/profile-preferences/PreferencesForm.vue

43 lines
1.1 KiB
Vue
Raw Normal View History

2022-04-15 14:24:30 +00:00
<template>
<div>
<div class="form-row" v-if="!isPhone">
<label>
2022-07-15 07:23:55 +00:00
<CheckBox name="notify" v-model="preferences.notify"/>
2022-04-15 14:24:30 +00:00
Show Now Playing song notification
</label>
</div>
<div class="form-row" v-if="!isPhone">
<label>
2022-07-15 07:23:55 +00:00
<CheckBox name="confirm_closing" v-model="preferences.confirmClosing"/>
2022-04-15 14:24:30 +00:00
Confirm before closing Koel
</label>
</div>
<div class="form-row" v-if="isPhone">
<label>
2022-07-15 07:23:55 +00:00
<CheckBox name="transcode_on_mobile" v-model="preferences.transcodeOnMobile"/>
2022-04-15 14:24:30 +00:00
Convert and play media at 128kbps on mobile
</label>
</div>
<div class="form-row">
<label>
2022-07-15 07:23:55 +00:00
<CheckBox name="show_album_art_overlay" v-model="preferences.showAlbumArtOverlay"/>
2022-04-15 14:24:30 +00:00
Show a translucent, blurred overlay of the current albums art
</label>
</div>
</div>
</template>
2022-04-15 17:00:08 +00:00
<script lang="ts" setup>
2022-04-15 14:24:30 +00:00
import isMobile from 'ismobilejs'
import { preferenceStore as preferences } from '@/stores'
2022-07-15 07:23:55 +00:00
import CheckBox from '@/components/ui/CheckBox.vue'
2022-04-15 14:24:30 +00:00
2022-04-15 17:00:08 +00:00
const isPhone = isMobile.phone
2022-04-15 14:24:30 +00:00
</script>
<style lang="scss" scoped>
label {
font-size: 1rem;
}
</style>