Skip to content

Commit 0988c41

Browse files
committed
Added a new page that allows the user to create new portfolio entries and added a button that leads to this page to the "New portfolio" page.
1 parent f28c337 commit 0988c41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebFrontend/Pages/NewPortfolio.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@inject IPortfolioService PortfolioService
77
@inject IMatDialogService MatDialogService
88
@inject IMatToaster Toaster
9+
@inject Microsoft.AspNetCore.Components.NavigationManager NavigationManager
910

1011

1112
<style>
@@ -78,7 +79,7 @@
7879
</MatCardContent>
7980
<MatCardActions>
8081
<MatCardActionButtons>
81-
<MatButton>View</MatButton>
82+
<MatButton OnClick='() => { NavigationManager.NavigateTo($"newportfolioentry/{portfolio.Id}");}'>View</MatButton>
8283
</MatCardActionButtons>
8384

8485
<MatCardActionIcons>
@@ -92,7 +93,6 @@
9293
{
9394
<MatSubtitle2>No portfolios found</MatSubtitle2>
9495
}
95-
9696
</div>
9797
</div>
9898
</div>

0 commit comments

Comments
 (0)