@using Start.Client.Store.Features.DeleteBookmark @using Fluxor @inherits Fluxor.Blazor.Web.Components.FluxorComponent @inject IDispatcher dispatch @inject IState state @{ string title = $"Delete Bookmark \"{this.state.Value.BookmarkToDelete?.Title}\""; } @if (this.state.Value.DeleteBookmarkErrorMessage != null) { @this.state.Value.DeleteBookmarkErrorMessage } @if (this.state.Value.BookmarkToDelete == null) { There is no bookmark to delete selected } else {

Are you sure you want to delete this bookmark?

Title
@this.state.Value.BookmarkToDelete.Title
URL
@this.state.Value.BookmarkToDelete.Url
@if (!string.IsNullOrWhiteSpace(this.state.Value.BookmarkToDelete.Notes)) {
Notes
@this.state.Value.BookmarkToDelete.Notes
}
@if (!this.state.Value.IsLoadingDeleteBookmark) { } else { }
}
@code { private void OnClose() { this.dispatch.Dispatch(new HideDeleteBookmarkFormAction()); } private void OnConfirmDelete() { if (this.state.Value.BookmarkToDelete == null) { dispatch.Dispatch(new ErrorFetchingDeleteBookmarkAction( "No bookmark to delete is selected")); return; } this.dispatch.Dispatch(new SubmitDeleteBookmarkFormAction( this.state.Value.BookmarkToDelete.BookmarkId)); } }