Add DisableStepIn flag to control StepIn-related interactions
Introduced the `DisableStepIn` flag in AppSettings to toggle StepIn-related features. Updated UI components to conditionally render StepIn interactions and filtering options based on this flag. Refactored group permissions for interactions to include Ambassadors where applicable.
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
{
|
{
|
||||||
#region Public Properties
|
#region Public Properties
|
||||||
|
|
||||||
|
public bool DisableStepIn { get; set; }
|
||||||
|
|
||||||
public TermSettings Terms { get; set; } = new();
|
public TermSettings Terms { get; set; } = new();
|
||||||
|
|
||||||
public bool TestMode { get; set; }
|
public bool TestMode { get; set; }
|
||||||
|
|||||||
@@ -51,27 +51,30 @@
|
|||||||
<InteractionRow
|
<InteractionRow
|
||||||
Prospect="Prospect"
|
Prospect="Prospect"
|
||||||
Type="InteractionType.Welcome"
|
Type="InteractionType.Welcome"
|
||||||
AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam))"
|
AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador))"
|
||||||
AddClick="AddInteraction"
|
AddClick="AddInteraction"
|
||||||
RemoveClick="@RemoveInteraction"
|
RemoveClick="@RemoveInteraction"
|
||||||
ButtonIconClass="fa-solid fa-check"
|
ButtonIconClass="fa-solid fa-check"
|
||||||
IconClass="fa-solid fa-handshake-simple">
|
IconClass="fa-solid fa-handshake-simple">
|
||||||
</InteractionRow>
|
</InteractionRow>
|
||||||
|
|
||||||
|
@if (!AppSettings.DisableStepIn)
|
||||||
|
{
|
||||||
<InteractionRow
|
<InteractionRow
|
||||||
Prospect="Prospect"
|
Prospect="Prospect"
|
||||||
Type="InteractionType.StepInBriefing"
|
Type="InteractionType.StepInBriefing"
|
||||||
AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam))"
|
AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador))"
|
||||||
AddClick="AddInteraction"
|
AddClick="AddInteraction"
|
||||||
RemoveClick="@RemoveInteraction"
|
RemoveClick="@RemoveInteraction"
|
||||||
ButtonIconClass="fa-solid fa-check"
|
ButtonIconClass="fa-solid fa-check"
|
||||||
IconClass="fa-solid fa-graduation-cap">
|
IconClass="fa-solid fa-graduation-cap">
|
||||||
</InteractionRow>
|
</InteractionRow>
|
||||||
|
}
|
||||||
|
|
||||||
<InteractionRow
|
<InteractionRow
|
||||||
Prospect="Prospect"
|
Prospect="Prospect"
|
||||||
Type="InteractionType.EinAb"
|
Type="InteractionType.EinAb"
|
||||||
AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.StoreManager, UserGroup.Ambassador))"
|
AllowInteraction="@(StateFilter == ProspectStateFilter.OnBoarding && CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador))"
|
||||||
AddClick="AddInteraction"
|
AddClick="AddInteraction"
|
||||||
RemoveClick="@RemoveInteraction"
|
RemoveClick="@RemoveInteraction"
|
||||||
Multiple="true"
|
Multiple="true"
|
||||||
|
|||||||
@@ -54,6 +54,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body" style="padding: .5rem;">
|
<div class="card-body" style="padding: .5rem;">
|
||||||
|
|
||||||
|
@if (!AppSettings.DisableStepIn)
|
||||||
|
{
|
||||||
@* WITHOUT STEP IN BRIEFING *@
|
@* WITHOUT STEP IN BRIEFING *@
|
||||||
@if (new[] { ProspectStateFilter.All, ProspectStateFilter.OnBoarding, ProspectStateFilter.Completed }.Contains(StateFilter))
|
@if (new[] { ProspectStateFilter.All, ProspectStateFilter.OnBoarding, ProspectStateFilter.Completed }.Contains(StateFilter))
|
||||||
{
|
{
|
||||||
@@ -61,6 +63,7 @@
|
|||||||
<Switch TValue="bool" Checked="Filter.WithoutStepInBriefing" CheckedChanged="WithoutStepInBriefingChangedAsync" Color="Color.Primary">Ohne @AppSettings.Terms.StepInName</Switch>
|
<Switch TValue="bool" Checked="Filter.WithoutStepInBriefing" CheckedChanged="WithoutStepInBriefingChangedAsync" Color="Color.Primary">Ohne @AppSettings.Terms.StepInName</Switch>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@* WITHOUT ID CHECK *@
|
@* WITHOUT ID CHECK *@
|
||||||
@if (new[] { ProspectStateFilter.All, ProspectStateFilter.Verification, ProspectStateFilter.Completed }.Contains(StateFilter))
|
@if (new[] { ProspectStateFilter.All, ProspectStateFilter.Verification, ProspectStateFilter.Completed }.Contains(StateFilter))
|
||||||
|
|||||||
Reference in New Issue
Block a user