diff --git a/components/modals/SleepTimerModal.vue b/components/modals/SleepTimerModal.vue index e3765e44..a4e5a887 100644 --- a/components/modals/SleepTimerModal.vue +++ b/components/modals/SleepTimerModal.vue @@ -6,9 +6,26 @@ -
{{ manualTimeoutMin }} min
+{{ timeRemainingPretty }}
@@ -45,7 +67,10 @@ export default { currentEndOfChapterTime: Number }, data() { - return {} + return { + manualTimerModal: null, + manualTimeoutMin: 1 + } }, computed: { show: { @@ -57,7 +82,7 @@ export default { } }, timeouts() { - return [1, 5, 10, 15, 30, 45, 60, 90] + return [5, 10, 15, 30, 45, 60, 90] }, timeRemainingPretty() { return this.$secondsToTimestamp(this.currentTime) @@ -71,6 +96,7 @@ export default { clickedOption(timeoutMin) { var timeout = timeoutMin * 1000 * 60 this.show = false + this.manualTimerModal = false this.$nextTick(() => this.$emit('change', { time: timeout, isChapterTime: false })) }, cancelSleepTimer() { @@ -82,6 +108,12 @@ export default { }, decreaseSleepTime() { this.$emit('decrease') + }, + increaseManualTimeout() { + this.manualTimeoutMin++ + }, + decreaseManualTimeout() { + if (this.manualTimeoutMin > 1) this.manualTimeoutMin-- } }, mounted() {} diff --git a/ios/App/Podfile b/ios/App/Podfile index dcdae730..89125e80 100644 --- a/ios/App/Podfile +++ b/ios/App/Podfile @@ -9,12 +9,12 @@ install! 'cocoapods', :disable_input_output_paths => true def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' - pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app' - pod 'CapacitorDialog', :path => '../../node_modules/@capacitor/dialog' - pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics' - pod 'CapacitorNetwork', :path => '../../node_modules/@capacitor/network' - pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar' - pod 'CapacitorStorage', :path => '../../node_modules/@capacitor/storage' + pod 'CapacitorApp', :path => '..\..\node_modules\@capacitor\app' + pod 'CapacitorDialog', :path => '..\..\node_modules\@capacitor\dialog' + pod 'CapacitorHaptics', :path => '..\..\node_modules\@capacitor\haptics' + pod 'CapacitorNetwork', :path => '..\..\node_modules\@capacitor\network' + pod 'CapacitorStatusBar', :path => '..\..\node_modules\@capacitor\status-bar' + pod 'CapacitorStorage', :path => '..\..\node_modules\@capacitor\storage' end target 'App' do