Skip to content

Commit

Permalink
Fixing notification types in the Navigation AdminController for Save,…
Browse files Browse the repository at this point in the history
… Publish, Unpublish
  • Loading branch information
BenedekFarkas committed Dec 8, 2024
1 parent 1aec856 commit 7dbc811
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public ActionResult Publish(int id) {

_contentManager.Publish(menuPart.ContentItem);

_notifier.Information(
_notifier.Success(
string.IsNullOrWhiteSpace(menuPart.MenuText)
? string.IsNullOrWhiteSpace(menuPart.TypeDefinition.DisplayName)
? T("Your content has been published.")
Expand All @@ -283,7 +283,7 @@ public ActionResult Unpublish(int id) {

_contentManager.Unpublish(menuPart.ContentItem);

_notifier.Information(
_notifier.Success(
string.IsNullOrWhiteSpace(menuPart.MenuText)
? string.IsNullOrWhiteSpace(menuPart.TypeDefinition.DisplayName)
? T("Your content has been unpublished.")
Expand Down Expand Up @@ -341,7 +341,7 @@ private ActionResult EditPOST(int id, string returnUrl, Action<ContentItem> cond
returnUrl = Url.ItemDisplayUrl(contentItem);
}

_notifier.Information(
_notifier.Success(
string.IsNullOrWhiteSpace(menuPart.MenuText)
? string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName)
? T("Your content has been saved.")
Expand Down

0 comments on commit 7dbc811

Please sign in to comment.