Skip to content

Commit

Permalink
Merge pull request #19168 from abpframework/8.1-mvc-features-modal
Browse files Browse the repository at this point in the history
Allow overriding features from Edition
  • Loading branch information
oykuermann committed Mar 1, 2024
2 parents 496462e + 1de84b1 commit 9418994
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
@for (var j = 0; j < featureGroup.Features.Count; j++)
{
var feature = featureGroup.Features[j];
var disabled = Model.IsDisabled(feature.Provider.Name);
<div class="mt-2">

<input type="text" abp-id-name="@Model.FeatureGroups[i].Features[j].Type" value="@feature.ValueType?.Name" hidden/>
Expand All @@ -54,7 +53,6 @@
type="checkbox"
abp-id-name="@Model.FeatureGroups[i].Features[j].BoolValue"
label="@feature.DisplayName"
disabled="@disabled"
group-data-feature-name="@feature.Name"
group-data-parent-name="@(feature.ParentName ?? "")"
group-style="margin-inline-start: @(feature.Depth * 20)px"/>
Expand All @@ -76,7 +74,6 @@
<abp-input asp-for="@feature.Value"
label="@feature.DisplayName"
abp-id-name="@Model.FeatureGroups[i].Features[j].Value"
disabled="@disabled"
type="@type"
group-data-feature-name="@feature.Name"
group-data-parent-name="@(feature.ParentName ?? "")"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ public virtual async Task<IActionResult> OnPostAsync()
return NoContent();
}

public virtual bool IsDisabled(string providerName)
{
return providerName != ProviderName && providerName != DefaultValueFeatureValueProvider.ProviderName;
}

public class FeatureGroupViewModel
{
public List<FeatureViewModel> Features { get; set; }
Expand Down

0 comments on commit 9418994

Please sign in to comment.