Esempio n. 1
0
        private async Task Remove(Infrastructure.Schema.Whitelist row)
        {
            var confirmed = await JSRuntime.InvokeAsync <bool>("confirm", new object[] { $"Remove rule '{row.Pattern}'?" });

            if (confirmed)
            {
                WhitelistModel.Remove(row);
                _whitelistTable !.InvalidateData();
                await ReloadWhitelist();
            }
        }
Esempio n. 2
0
 public static void Remove(Whitelist row)
 {
     WhitelistModel.Remove(row);
 }