LPS-45718 When we are editing a page template we shouldn't show the buttons: permission, delete and copy applications (same logic is below for the js)