Completes: U4-2868 Remove ActionSave, fixes unit tests
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Umbraco.Tests.PropertyEditors
|
||||
{
|
||||
LegacyPropertyEditorIdToAliasConverter.CreateMappingsForCoreEditors();
|
||||
|
||||
Assert.AreEqual(34, LegacyPropertyEditorIdToAliasConverter.Count());
|
||||
Assert.AreEqual(36, LegacyPropertyEditorIdToAliasConverter.Count());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,89 +0,0 @@
|
||||
using System;
|
||||
using umbraco.interfaces;
|
||||
using umbraco.BasePages;
|
||||
|
||||
namespace umbraco.BusinessLogic.Actions
|
||||
{
|
||||
/// <summary>
|
||||
/// This action is invoked upon saving of a document, media, member
|
||||
/// </summary>
|
||||
public class ActionSave : IAction
|
||||
{
|
||||
//create singleton
|
||||
#pragma warning disable 612,618
|
||||
private static readonly ActionSave m_instance = new ActionSave();
|
||||
#pragma warning restore 612,618
|
||||
|
||||
/// <summary>
|
||||
/// A public constructor exists ONLY for backwards compatibility in regards to 3rd party add-ons.
|
||||
/// All Umbraco assemblies should use the singleton instantiation (this.Instance)
|
||||
/// When this applicatio is refactored, this constuctor should be made private.
|
||||
/// </summary>
|
||||
[Obsolete("Use the singleton instantiation instead of a constructor")]
|
||||
public ActionSave() { }
|
||||
|
||||
public static ActionSave Instance
|
||||
{
|
||||
get { return m_instance; }
|
||||
}
|
||||
|
||||
#region IAction Members
|
||||
|
||||
public char Letter
|
||||
{
|
||||
get
|
||||
{
|
||||
return '0';
|
||||
}
|
||||
}
|
||||
|
||||
public string JsFunctionName
|
||||
{
|
||||
get
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
public string JsSource
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string Alias
|
||||
{
|
||||
get
|
||||
{
|
||||
return "save";
|
||||
}
|
||||
}
|
||||
|
||||
public string Icon
|
||||
{
|
||||
get
|
||||
{
|
||||
return "save";
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShowInNotifier
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public bool CanBePermissionAssigned
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -198,7 +198,6 @@
|
||||
<Compile Include="Actions\ActionRePublish.cs" />
|
||||
<Compile Include="Actions\ActionRights.cs" />
|
||||
<Compile Include="Actions\ActionRollback.cs" />
|
||||
<Compile Include="Actions\ActionSave.cs" />
|
||||
<Compile Include="Actions\ActionSendToTranslate.cs" />
|
||||
<Compile Include="Actions\ActionSort.cs" />
|
||||
<Compile Include="Actions\ActionToPublish.cs" />
|
||||
|
||||
Reference in New Issue
Block a user