Revert "Added notifications toggle to user groups (#10450)"

This reverts commit 4c6d4b9326.
This commit is contained in:
Sebastiaan Janssen
2021-12-16 16:30:18 +01:00
parent a3b721bb4c
commit 7006461ba2
10 changed files with 10 additions and 52 deletions

View File

@@ -1,24 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Umbraco.Core;
namespace Umbraco.Web.Actions
{
public class ActionNotify : IAction
{
public char Letter => 'N';
public bool ShowInNotifier => false;
public bool CanBePermissionAssigned => true;
public string Icon => "megaphone";
public string Alias => "notify";
public string Category => Constants.Conventions.PermissionCategories.ContentCategory;
}
}

View File

@@ -242,7 +242,12 @@ namespace Umbraco.Web.Trees
if (EmailSender.CanSendRequiredEmail)
{
AddActionNode<ActionNotify>(item, menu, true, opensDialog: true);
menu.Items.Add(new MenuItem("notify", Services.TextService)
{
Icon = "megaphone",
SeparatorBefore = true,
OpensDialog = true
});
}
if((item is DocumentEntitySlim documentEntity && documentEntity.IsContainer) == false)

View File

@@ -136,7 +136,6 @@
<Compile Include="..\SolutionInfo.cs">
<Link>Properties\SolutionInfo.cs</Link>
</Compile>
<Compile Include="Actions\ActionNotify.cs" />
<Compile Include="AppBuilderExtensions.cs" />
<Compile Include="AreaRegistrationContextExtensions.cs" />
<Compile Include="AspNetHttpContextAccessor.cs" />