Add:Android auto sleep timer #260

This commit is contained in:
advplyr 2023-01-29 13:19:06 -06:00
parent 479de5f067
commit 31531197a2
13 changed files with 346 additions and 43 deletions

View file

@ -40,7 +40,7 @@
</li>
<li class="text-gray-50 select-none relative py-4 cursor-pointer hover:bg-black-400" role="option" @click="manualTimerModal = true">
<div class="flex items-center justify-center">
<span class="font-normal block truncate text-lg text-center">Manual sleep timer</span>
<span class="font-normal block truncate text-lg text-center">Custom time</span>
</div>
</li>
</ul>
@ -96,7 +96,7 @@ export default {
},
async clickedOption(timeoutMin) {
await this.$hapticsImpact()
var timeout = timeoutMin * 1000 * 60
const timeout = timeoutMin * 1000 * 60
this.show = false
this.manualTimerModal = false
this.$nextTick(() => this.$emit('change', { time: timeout, isChapterTime: false }))