Skip to content

Commit

Permalink
Update confirm disable auto timer message
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jan 26, 2025
1 parent b6ab7dc commit 0509d71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
18 changes: 5 additions & 13 deletions components/modals/SleepTimerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,11 @@ export default {
},
async cancelSleepTimer() {
if (this.isAuto) {
if (this.$platform === 'ios') {
const { value } = await Dialog.confirm({
title: 'Confirm',
message: this.$strings.MessageConfirmDisableAutoTimerIos
})
if (!value) return
} else {
const { value } = await Dialog.confirm({
title: 'Confirm',
message: this.$strings.MessageConfirmDisableAutoTimerAndroid
})
if (!value) return
}
const { value } = await Dialog.confirm({
title: 'Confirm',
message: this.$strings.MessageConfirmDisableAutoTimer
})
if (!value) return
}
await this.$hapticsImpact()
Expand Down
3 changes: 1 addition & 2 deletions strings/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@
"MessageBookshelfEmpty": "Bookshelf empty",
"MessageConfirmDeleteLocalEpisode": "Remove local episode \"{0}\" from your device? The file on the server will be unaffected.",
"MessageConfirmDeleteLocalFiles": "Remove local files of this item from your device? The files on the server and your progress will be unaffected.",
"MessageConfirmDisableAutoTimerAndroid": "Are you sure you want to disable the auto timer for the rest of today? The timer will be re-enabled at the end of this auto-sleep timer period, or if you restart the app.",
"MessageConfirmDisableAutoTimerIos": "Are you sure you want to disable the auto sleep timer? You will need to enable this again in settings.",
"MessageConfirmDisableAutoTimer": "Are you sure you want to disable the auto timer for the rest of today? The timer will be re-enabled at the end of this auto-sleep timer period, or if you restart the app.",
"MessageConfirmDiscardProgress": "Are you sure you want to reset your progress?",
"MessageConfirmDownloadUsingCellular": "You are about to download using cellular data. This may include carrier data charges. Do you wish to continue?",
"MessageConfirmMarkAsFinished": "Are you sure you want to mark this item as finished?",
Expand Down

0 comments on commit 0509d71

Please sign in to comment.