Fixing notification types in the Navigation AdminController for Save, Publish, Unpublish

This commit is contained in:
Benedek Farkas 2024-12-08 19:37:53 +01:00
parent 1aec856831
commit 7dbc8110fa

View File

@ -261,7 +261,7 @@ namespace Orchard.Core.Navigation.Controllers {
_contentManager.Publish(menuPart.ContentItem); _contentManager.Publish(menuPart.ContentItem);
_notifier.Information( _notifier.Success(
string.IsNullOrWhiteSpace(menuPart.MenuText) string.IsNullOrWhiteSpace(menuPart.MenuText)
? string.IsNullOrWhiteSpace(menuPart.TypeDefinition.DisplayName) ? string.IsNullOrWhiteSpace(menuPart.TypeDefinition.DisplayName)
? T("Your content has been published.") ? T("Your content has been published.")
@ -283,7 +283,7 @@ namespace Orchard.Core.Navigation.Controllers {
_contentManager.Unpublish(menuPart.ContentItem); _contentManager.Unpublish(menuPart.ContentItem);
_notifier.Information( _notifier.Success(
string.IsNullOrWhiteSpace(menuPart.MenuText) string.IsNullOrWhiteSpace(menuPart.MenuText)
? string.IsNullOrWhiteSpace(menuPart.TypeDefinition.DisplayName) ? string.IsNullOrWhiteSpace(menuPart.TypeDefinition.DisplayName)
? T("Your content has been unpublished.") ? T("Your content has been unpublished.")
@ -341,7 +341,7 @@ namespace Orchard.Core.Navigation.Controllers {
returnUrl = Url.ItemDisplayUrl(contentItem); returnUrl = Url.ItemDisplayUrl(contentItem);
} }
_notifier.Information( _notifier.Success(
string.IsNullOrWhiteSpace(menuPart.MenuText) string.IsNullOrWhiteSpace(menuPart.MenuText)
? string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName) ? string.IsNullOrWhiteSpace(contentItem.TypeDefinition.DisplayName)
? T("Your content has been saved.") ? T("Your content has been saved.")