mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed a Notifications design display bug.
This commit is contained in:
@@ -20,6 +20,9 @@ namespace Orchard.Layouts.Drivers {
|
||||
public dynamic New { get; set; }
|
||||
|
||||
protected override void OnCreatingDisplay(Notifications element, ElementCreatingDisplayShapeContext context) {
|
||||
if (context.DisplayType == "Design")
|
||||
return;
|
||||
|
||||
var httpContext = _httpContextAccessor.Current();
|
||||
var messageEntries = httpContext.Items[NotifyFilter.TempDataMessages] as IList<NotifyEntry> ?? new List<NotifyEntry>();
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<div class="layout-placeholder">
|
||||
<span class="fa fa-circle"></span>
|
||||
<span class="fa fa-square"></span>
|
||||
@T("Notifications")
|
||||
</div>
|
Reference in New Issue
Block a user