feat: Add dynamic 'Last snoozed' option with reactive updates
- Add 'UNTIL_LAST_CUSTOM_TIME' snooze option that shows saved custom time - Implement smart expiration: times expire when passed OR after 7 days - Add user-friendly format: 'Sat, 23 Aug, 8.16pm' - Fix caching issue: actions now update dynamically without page refresh - Auto-save custom times to localStorage for quick reuse - Add reactive event system for real-time UI updates - Include option filtering to show/hide based on saved time availability Improves UX by allowing users to quickly reuse their last custom snooze time without having to re-enter it every time.
This commit is contained in:
@@ -31,6 +31,7 @@ export default {
|
||||
const unixTimestamp = getUnixTime(this.snoozeTime);
|
||||
// Save the custom time to localStorage for future use
|
||||
saveLastCustomSnoozeTime(unixTimestamp);
|
||||
// The saveLastCustomSnoozeTime function will emit the event automatically
|
||||
this.$emit('chooseTime', this.snoozeTime);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user