Skip to content

Commit

Permalink
remove extra delete investment button
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Jul 27, 2023
1 parent 7ffef8f commit 421660f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
23 changes: 15 additions & 8 deletions Pages/Portfolio.razor
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,10 @@
</td>
</tr>
@if(account.Edit) {
<tr style=color:white;background:black;padding-left:8px><td colspan=3>
<tr style=color:white;background:black;padding-left:8px><td colspan=4>
<label style=padding-left:8px>Custodian: </label><input style="width:140px" type=text @bind-Value=account.Custodian @bind-Value:event=oninput placeholder='custodian' />
</td>
<td >
<div style=float:left;margin-left:50px><button @onclick=doneEditing>done</button></div>
</td>

</tr>

<tr style=color:white;background:black;padding-left:8px>
Expand Down Expand Up @@ -258,7 +256,6 @@
</select>
</td>
<td >
<div style=float:left;margin-left:50px><button @onclick='@(e=>deleteAccount2(e,accBuffer))' title='delete account'>account</button></div>
</td>
</tr>
<tr style=color:white;background:black;padding-left:8px>
Expand Down Expand Up @@ -287,6 +284,12 @@
<label style=padding-left:8px>Note: </label><input type=text @bind-value=account.Note @bind-value:event=oninput placeholder='account note'/>
</td>
</tr>
<tr style=color:white;background:black;>
<td colspan=4 style=text-align:right>
<button @onclick='@(e=>deleteAccount2(e,accBuffer))' title='delete account'>account</button>
<button @onclick=doneEditing>save account</button>
</td>
</tr>
}

var investmentIndex = 0;
Expand Down Expand Up @@ -350,9 +353,13 @@
<option>@assetType</option>
}
</select>
<div style=float:left;margin-left:50px><button @onclick='@(e=>deleteInvestment2(e,accBuffer, invBuffer))' title='delete investment'></button></div>
</td>
</tr>
<tr style=background-color:@bgColor>
<td colspan=4 style=text-align:right>
<button @onclick='@(e=>deleteInvestment2(e,accBuffer, invBuffer))' title='delete investment'>investment</button>
</td>
</tr>
}

alternateRow2 = !alternateRow2;
Expand All @@ -361,9 +368,9 @@
<tr style=background:black;color:white>
<td colspan=4><button @onclick='@(e=>addInvestment2(e,accBuffer))' style=margin-left:20px>Investment</button></td>
</tr>
} else {
<tr style=height:4;background:white;font-size:4pt;><td>&nbsp;</td></tr>
}

<tr style=height:4;background:white;font-size:4pt;><td>&nbsp;</td></tr>
}
<tr>
<td colspan=2>
Expand Down
8 changes: 5 additions & 3 deletions Pages/RSU-Tracker.razor
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@
every <input @onmousedown:stopPropagation="true" type=text style=width:40px;text-align:right @bind-value=rsuGrant.VestPeriodMonths /> months<br/>
with first vest happening at month # <input @onmousedown:stopPropagation="true" type=text style=width:80px @bind-value=rsuGrant.FirstVestMonth /><br/>
<br/>
last price: $<input @onmousedown:stopPropagation="true" type=text style=width:80px @bind-value=rsuGrant.LastPrice placeholder="last price" /><br/>
<button title='delete grant' @onclick='@(e=>deleteGrant(e,pBuf, grantIndex))'>grant</button>
<button title='save grant' >save grant</button>
last price: $<input @onmousedown:stopPropagation="true" type=text style=width:80px @bind-value=rsuGrant.LastPrice placeholder="last price" />
<div style=text-align:right>
<button title='delete grant' @onclick='@(e=>deleteGrant(e,pBuf, grantIndex))'>grant</button>
<button title='save grant' >save grant</button>
</div>
</td>
}
</tr>
Expand Down
2 changes: 1 addition & 1 deletion wwwroot/cache.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CACHE MANIFEST

# Version 1.0073
# Version 1.0074

NETWORK:
*

0 comments on commit 421660f

Please sign in to comment.