Merge pull request #2240 from wakuflair/dev

Adding an additional parameter for the SettingPageGroup's constructor.
pull/2375/head^2
Halil İbrahim Kalkan 6 years ago committed by GitHub
commit 5c90930715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,10 @@
<abp-tab title="@group.DisplayName"> <abp-tab title="@group.DisplayName">
<h2>@group.DisplayName</h2> <h2>@group.DisplayName</h2>
<hr class="my-4" /> <hr class="my-4" />
@await Component.InvokeAsync(group.ComponentType) @await Component.InvokeAsync(group.ComponentType, new
{
parameter = group.Parameter
})
</abp-tab> </abp-tab>
} }
</abp-tabs> </abp-tabs>

@ -26,11 +26,14 @@ namespace Volo.Abp.SettingManagement.Web.Pages.SettingManagement
} }
private Type _componentType; private Type _componentType;
public SettingPageGroup([NotNull] string id, [NotNull] string displayName, [NotNull] Type componentType) public object Parameter { get; set; }
public SettingPageGroup([NotNull] string id, [NotNull] string displayName, [NotNull] Type componentType, object parameter = null)
{ {
Id = id; Id = id;
DisplayName = displayName; DisplayName = displayName;
ComponentType = componentType; ComponentType = componentType;
Parameter = parameter;
} }
} }
} }
Loading…
Cancel
Save