protected override async Task HandleOk(MouseEventArgs e) { validationResult = validator.Validate(DomainNameCreateRequest); if (validationResult.IsValid) { displayError = false; loadInProgress = true; var claimResult = await DomainNameService.CreateDomainNameAsync(DomainNameCreateRequest); if (claimResult) { DomainNameCreateRequest = new DomainNameCreateRequest(); Dispatcher.Dispatch(new FetchDomainNameAction()); await OnCloseCallback.InvokeAsync(e); await NotificationService.Open(new NotificationConfig() { Message = Translator.GetString("CLAIM_SUCCESS_NOTIFICATION_TITLE").Value, Description = Translator.GetString("CLAIM_SUCCESS_NOTIFICATION_CONTENT").Value, NotificationType = NotificationType.Success }); } else { displayError = true; } loadInProgress = false; } }
private async Task HandleOk(MouseEventArgs e) { Dispatcher.Dispatch(new CreateClusterAction(ClusterCreateRequest)); await OnCloseCallback.InvokeAsync(e); Visible = false; StateHasChanged(); }
private void HandleCancel(MouseEventArgs e) { OnCloseCallback.InvokeAsync(e).Wait(); StateHasChanged(); }
protected override async Task HandleCancel(MouseEventArgs e) { await OnCloseCallback.InvokeAsync(e); StateHasChanged(); }