Handle "preview" resource button visibility according to the "deleted"...

...status of the resource.

This is a follow up of the PR #794 (which needs to be merged first)