Archiving an already archived Entry

Reporting as a potential bug.

What were you doing?

In the web app, archiving an entry that is currently archived

What did you expect to happen?


What happened?

It unarchives and then archives again in quick succession.

The problem with this behaviour is if you are using webhooks it fires an unarchive and archive event in quick succession resulting in having to handle the scenario where archive events may have an unarchive event for the same entry that has not been fully completed yet.


An alternative could be to remove the ‘Archive instead’ button from the ’ Permanently delete this entry?’ modal if the entry has an archived status