protected async Task NavigateToLandingPage() { if (!ContractManager.CanSafelyExit() && !await SaveGuardJsCommunicator.DisplayAndCollectConfirmation()) { return; } NavigationManager.NavigateTo(""); }
protected async void RemoveStoredContract(string contractId) { if (await SaveGuardJsCommunicator.DisplayAndCollectConfirmation("This will permanently remove the contract. Are you sure?")) { await ContractStorage.RemoveContract(contractId); ContractLinks = await ContractStorage.GetAllContractLinks(); StateHasChanged(); } }