koel/resources/assets/js/components/profile-preferences/PreferencesForm.vue
2022-04-22 00:51:48 +02:00

41 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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