Files
Umbraco-CMS/src/Umbraco.Web/Models/Trees/RefreshNode.cs

30 lines
832 B
C#
Raw Normal View History

using Umbraco.Core.Services;
namespace Umbraco.Web.Models.Trees
2018-06-29 19:52:40 +02:00
{
/// <inheritdoc />
2018-06-29 19:52:40 +02:00
/// <summary>
/// Represents the refresh node menu item
/// </summary>
public sealed class RefreshNode : ActionMenuItem
{
public override string AngularServiceName => "umbracoMenuActions";
public RefreshNode(string name, bool seperatorBefore = false)
{
Alias = "refreshNode";
Icon = "refresh";
Name = name;
SeperatorBefore = seperatorBefore;
}
public RefreshNode(ILocalizedTextService textService, bool seperatorBefore = false)
{
Alias = "refreshNode";
Icon = "refresh";
Name = textService.Localize($"actions/{Alias}");
SeperatorBefore = seperatorBefore;
}
2018-06-29 19:52:40 +02:00
}
}