Fixed a Notifications design display bug.

This commit is contained in:
Sipke Schoorstra
2015-04-19 18:45:53 +02:00
parent 838cd0a99a
commit a9df078ce3
2 changed files with 4 additions and 1 deletions

View File

@@ -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>();

View File

@@ -1,4 +1,4 @@
<div class="layout-placeholder">
<span class="fa fa-circle"></span>
<span class="fa fa-square"></span>
@T("Notifications")
</div>