mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 17:11:31 +08:00
Update On Mon Oct 21 20:36:26 CEST 2024
This commit is contained in:
@@ -29,9 +29,13 @@ namespace ServiceLib.ViewModels
|
||||
public RoutingRuleDetailsViewModel(RulesItem rulesItem, Func<EViewAction, object?, Task<bool>>? updateView)
|
||||
{
|
||||
_config = AppHandler.Instance.Config;
|
||||
|
||||
_updateView = updateView;
|
||||
|
||||
SaveCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
await SaveRulesAsync();
|
||||
});
|
||||
|
||||
if (rulesItem.id.IsNullOrEmpty())
|
||||
{
|
||||
rulesItem.id = Utils.GetGuid(false);
|
||||
@@ -47,11 +51,6 @@ namespace ServiceLib.ViewModels
|
||||
Domain = Utils.List2String(SelectedSource.domain, true);
|
||||
IP = Utils.List2String(SelectedSource.ip, true);
|
||||
Process = Utils.List2String(SelectedSource.process, true);
|
||||
|
||||
SaveCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
await SaveRulesAsync();
|
||||
});
|
||||
}
|
||||
|
||||
private async Task SaveRulesAsync()
|
||||
|
||||
Reference in New Issue
Block a user