Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add toggleable option to activate truely view-once-and-destroy mode #42

Closed
whysthatso opened this issue Feb 1, 2021 · 1 comment · Fixed by #46
Closed

add toggleable option to activate truely view-once-and-destroy mode #42

whysthatso opened this issue Feb 1, 2021 · 1 comment · Fixed by #46
Assignees
Labels
enhancement New feature or request refactor Refactoring of functionality
Projects
Milestone

Comments

@whysthatso
Copy link

Is your feature request related to a problem? Please describe.
when reloading the same tab, the information is still present, related to the payload value in the sessionstorage. i understand this is a safety measurement as discussed in #40

Describe the solution you'd like
i'd like to have a configurable 'fragile' option which activates message destruction upon viewing, without any safety net. default can be 'off', but then a notification should show that the message is deleted remotely but will only be deleted locally once the browser is closed / the browser session is ended (should be very easily understandable by an end user)

Additional context
See discussion #40

@rendler-denis rendler-denis self-assigned this Feb 1, 2021
@rendler-denis rendler-denis added enhancement New feature or request refactor Refactoring of functionality labels Feb 1, 2021
@rendler-denis rendler-denis added this to To do in SafeNotes via automation Feb 1, 2021
@rendler-denis rendler-denis added this to the 1.0 milestone Feb 1, 2021
@rendler-denis rendler-denis pinned this issue Feb 1, 2021
@rendler-denis rendler-denis moved this from To do to In progress in SafeNotes Apr 11, 2021
@rendler-denis rendler-denis linked a pull request Apr 11, 2021 that will close this issue
SafeNotes automation moved this from In progress to Done Apr 11, 2021
@rendler-denis
Copy link
Contributor

hi, @whysthatso

I finally managed to get around to adding this. :)
I've added a cache: true or false option under the static-site > envjs config. By default it is true, but if you want to disable it just put false in your config.

Let me know if there are any bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Refactoring of functionality
Projects
SafeNotes
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants