Ejemplo n.º 1
0
 protected async Task NavigateToLandingPage()
 {
     if (!ContractManager.CanSafelyExit() && !await SaveGuardJsCommunicator.DisplayAndCollectConfirmation())
     {
         return;
     }
     NavigationManager.NavigateTo("");
 }
Ejemplo n.º 2
0
        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();
            }
        }