BetterCMS
BetterCMS copied to clipboard
A message needs to be shown when a template cannot be deleted
If a template is used by other templates, we disable inputs when trying to delete it, but no message is shown, so it's unclear why we can't delete it.
Now, if template is in use, the form will be replaced by a message
Fix available in 2.0.0-preview1+
When trying to delete a template that is in use, I get a "Yes/No" dialog about deleting it and it is quickly replaced by a message "This template cannot be deleted, because it is used by some pages or templates." I think it would be best to only show message.