Skip to content

Commit

Permalink
move refresh prices button
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Jun 23, 2023
1 parent b503dcd commit 06ee3eb
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions Pages/Portfolio.razor
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,7 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
<option>Group Investments by Ticker</option>
<option>Group Investments by Tax Type</option>
</InputSelect>
@if (!string.IsNullOrEmpty(familyData.EODHistoricalDataApiKey))
{
<button @onclick=@refreshPrices title=Refresh>🔃</button>
} else {
<a href="updated-quotes">Enable<br/>updates.</a>
}

@switch (familyData.PortfolioView) {
case "Group Investments by Ticker":
<table>
Expand All @@ -155,7 +150,15 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
<td colspan=5><hr/></td>
</tr>
<tr>
<td style=text-align:right;padding-left:8px colspan=4>
<td>
@if (!string.IsNullOrEmpty(familyData.EODHistoricalDataApiKey))
{
<button @onclick=@refreshPrices title=Refresh>🔃</button>
} else {
<a href="updated-quotes">Enable<br/>updates.</a>
}
</td>
<td style=text-align:right;padding-left:8px colspan=3>
<b>@(formatMoney(familyData.Value))</b>
<br/>today's change: <i>@formatMoney(portfolioChange())</i>
</td>
Expand Down Expand Up @@ -190,7 +193,15 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
}
}
<tr>
<td style=text-align:right;padding-left:8px colspan=4>
<td>
@if (!string.IsNullOrEmpty(familyData.EODHistoricalDataApiKey))
{
<button @onclick=@refreshPrices title=Refresh>🔃</button>
} else {
<a href="updated-quotes">Enable<br/>updates.</a>
}
</td>
<td style=text-align:right;padding-left:8px colspan=3>
<hr/><b>@(formatMoney(familyData.Value))</b>
<br/>today's change: <i>@formatMoney(portfolioChange())</i>
</td>
Expand All @@ -214,7 +225,15 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
</tr>
}
<tr>
<td style=text-align:right;padding-left:8px colspan="4">
<td>
@if (!string.IsNullOrEmpty(familyData.EODHistoricalDataApiKey))
{
<button @onclick=@refreshPrices title=Refresh>🔃</button>
} else {
<a href="updated-quotes">Enable<br/>updates.</a>
}
</td>
<td style=text-align:right;padding-left:8px colspan="3">
<hr/><b>@(formatMoney(familyData.Value))</b>
<br/>today's change: <i>@formatMoney(portfolioChange())</i>
</td>
Expand Down

0 comments on commit 06ee3eb

Please sign in to comment.