server
server copied to clipboard
Delete All Button confirmation
Describe the solution you'd like I clicked by mistake on the button "Delete all" where I wanted to hit the refresh Button. A confirmation or undo feature would be helpful before all messages are deleted.
I'm open to accept PRs for this.
So we want a modal dialogue sort of thing that warns the user before deleting the things right?
@ritikBhandari Yes, it should be similar to the "delete confirmation dialog" for applications.
The confirm dialog can be used https://github.com/gotify/server/blob/master/ui/src/common/ConfirmDialog.tsx
Adding this feature will break the e2e tests, in there the dialog has to be confirmed. see f.ex https://github.com/gotify/server/blob/master/ui/src/tests/message.test.ts#L221
Can I take up this issue?
@ritikBhandari yes