Skip to content

Commit

Permalink
Fixed uri.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcanosantana committed Nov 26, 2023
1 parent b85b4ee commit 3cd66af
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Pages/Dashboard.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<PageTitle>Panel Administrativo | Cirsa</PageTitle>


<style>
#uri-text-area {
resize: none;
}
</style>


<div class="container py-4 jumbotron-a">


Expand All @@ -25,7 +32,7 @@

<div class="mb-3">
<label for="exampleInputEmail1" class="form-label">Link de afiliado</label>
<input value="@GetAbsoluteUri()" class="form-control" id="nameInput" readonly>
<textarea id="uri-text-area" value="@GetAbsoluteUri()" class="form-control" rows="2" readonly></textarea>
</div>

</form>
Expand All @@ -40,11 +47,8 @@

@code {

private String absoluteUri = "";


private String GetAbsoluteUri()
{
return NavigationManager.ToAbsoluteUri("/dashboard/aff/").ToString() + @UserService.GetLoggedUser().GetId();
return NavigationManager.ToAbsoluteUri("/aff/").ToString() + @UserService.GetLoggedUser().GetId();

Check warning on line 52 in Pages/Dashboard.razor

View workflow job for this annotation

GitHub Actions / deploy-to-github-pages

Dereference of a possibly null reference.
}
}

0 comments on commit 3cd66af

Please sign in to comment.