mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Fixing notification types in the Navigation AdminController for Save, Publish, Unpublish
This commit is contained in:
parent
1aec856831
commit
7dbc8110fa
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user