- @if (Model.ContentTypeDescriptor.DisableDelete) {
+ @if (Model.ContentTypeDescriptor.DisableDelete && !Model.IsNew) {
Warning: This topic is part of the OnTopic internal organizational structure and is not intended to be modified. Deletion of this Topic has been disabled.
@@ -31,7 +31,7 @@
@Model.ContentTypeDescriptor.Description
}
- @if (Model.Topic.DerivedTopic != null) {
+ @if (Model.Topic.DerivedTopic is not null) {
@@ -46,7 +46,7 @@
var displayGroupId = displayGroupName.Replace(" ", String.Empty);
-
+
@foreach (var attribute in Model.ContentTypeDescriptor.GetAttributeDescriptors(displayGroupName)) {
@@ -105,7 +105,7 @@
}
});
- @if (Model.Topic.DerivedTopic != null) {
+ @if (Model.Topic.DerivedTopic is not null) {
/**
* Disable required fields if derived topic, as missing values will be inherited
diff --git a/OnTopic.Editor.AspNetCore/Areas/Editor/Views/Shared/_Toolbar.cshtml b/OnTopic.Editor.AspNetCore/Areas/Editor/Views/Shared/_Toolbar.cshtml
index d0944732..7f7adce5 100644
--- a/OnTopic.Editor.AspNetCore/Areas/Editor/Views/Shared/_Toolbar.cshtml
+++ b/OnTopic.Editor.AspNetCore/Areas/Editor/Views/Shared/_Toolbar.cshtml
@@ -11,13 +11,13 @@
@if (Model.Topic.VersionHistory.Count > 1) {
-