Browse Source
Update feature management modal to filter features based on value presence and change BoolValue to nullable
pull/22628/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
2 additions and
2 deletions
-
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml.cs
|
|
|
@ -69,7 +69,7 @@ public class FeatureManagementModal : AbpPageModel |
|
|
|
{ |
|
|
|
var features = new UpdateFeaturesDto |
|
|
|
{ |
|
|
|
Features = FeatureGroups.SelectMany(g => g.Features).Select(f => new UpdateFeatureDto |
|
|
|
Features = FeatureGroups.SelectMany(g => g.Features).Where(x => !x.Value.IsNullOrWhiteSpace() || x.BoolValue.HasValue).Select(f => new UpdateFeatureDto |
|
|
|
{ |
|
|
|
Name = f.Name, |
|
|
|
Value = f.Type == nameof(ToggleStringValueType) ? f.BoolValue.ToString() : f.Value |
|
|
|
@ -101,7 +101,7 @@ public class FeatureManagementModal : AbpPageModel |
|
|
|
|
|
|
|
public string Value { get; set; } |
|
|
|
|
|
|
|
public bool BoolValue { get; set; } |
|
|
|
public bool? BoolValue { get; set; } |
|
|
|
|
|
|
|
public string Type { get; set; } |
|
|
|
} |
|
|
|
|