@@ -26,83 +26,82 @@ <h2>{{ p.name }}</h2>
2626 < button [routerLink] ="['/ipo/participate/', p.index] " mat-raised-button color ="primary ">
2727 < mat-icon > payments</ mat-icon > {{ t("ipoComponent.buttons.place-bid") }}
2828 </ button >
29- < button mat-raised-button (click) ="init() ">
30- < mat-icon > refresh</ mat-icon > {{ t("ipoComponent.buttons.refresh") }}
29+ < button mat-raised-button class ="refresh-btn " (click) ="init() " [disabled] ="refreshing ">
30+ < mat-spinner *ngIf ="refreshing " class ="refresh-spinner " diameter ="20 "> </ mat-spinner >
31+ < span class ="refresh-content " [class.hidden] ="refreshing ">
32+ < mat-icon > refresh</ mat-icon >
33+ < span > {{ t("ipoComponent.buttons.refresh") }}</ span >
34+ </ span >
3135 </ button >
3236 < button mat-raised-button (click) ="openStats(p.index) ">
3337 < mat-icon > query_stats</ mat-icon > {{ t("ipoComponent.livPanelHint") }}
3438 </ button >
3539 < div *ngIf ="ipoContracts ">
3640 < h3 > {{ t("ipoComponent.yourShares") }}</ h3 >
37- {{ t("ipoComponent.statusValid", {tick: getBidOverview(p.index).tick | number: '1.0-0'}) }}
38- < div *ngFor ="let bid of getMyShares(p.index) " class ="transaction-list ">
39- < strong > {{ bid.bids.length }} ({{ getTotalPrice(bid.bids) | number: '1.0-0'}} {{
40- t("general.currency") }})</ strong > {{ t("ipoComponent.sharesFor") }}
41- < div [class] ="{copy: true, ownId: isOwnId(bid.computorId)} ">
42- < span matTooltip ="{{ t('general.copy.tooltip') }} "
43- [cdkCopyToClipboard] ="bid.computorId "> {{ bid.computorId }} {{
44- getSeedName(bid.computorId) }}</ span >
41+ < div class ="status-valid "> ({{ t("ipoComponent.statusValid", {tick: getBidOverview(p.index).tick | number: '1.0-0'}) }})</ div >
42+ < ng-container *ngIf ="getMyShares(p.index) as shares ">
43+ < div *ngIf ="shares.length === 0 " class ="empty-state ">
44+ {{ t("ipoComponent.noShares") }}
4545 </ div >
46- </ div >
46+ < div *ngFor ="let bid of shares " class ="transaction-list ">
47+ < strong > {{ bid.bids.length }} ({{ getTotalPrice(bid.bids) | number: '1.0-0'}} {{
48+ t("general.currency") }})</ strong > {{ t("ipoComponent.sharesFor") }}
49+ < div [class] ="{copy: true, ownId: isOwnId(bid.computorId)} ">
50+ < span matTooltip ="{{ t('general.copy.tooltip') }} "
51+ [cdkCopyToClipboard] ="bid.computorId "> {{ bid.computorId }} {{
52+ getSeedName(bid.computorId) }}</ span >
53+ </ div >
54+ </ div >
55+ </ ng-container >
4756 </ div >
4857 < div >
4958 < h3 > {{ t("ipoComponent.yourBids") }}</ h3 >
5059
5160 < ng-container *ngIf ="getContractBids(p.index) as bids ">
52- < div *ngIf ="bids.length === 0 ">
61+ < div *ngIf ="bids.length === 0 " class =" empty-state " >
5362 {{ t("ipoComponent.noBids") }}
5463 </ div >
5564
5665 < div *ngFor ="let transaction of bids " class ="transaction-list ">
57- < tx-status [transaction] ="transaction "> </ tx-status >
66+ < span class ="status-icon ">
67+ < mat-icon *ngIf ="transaction.status == 'Success' " class ="trx-executed "
68+ matTooltip ="{{ t('balanceComponent.transactions.status.executed.tooltip') }} "> check_circle_outline</ mat-icon >
69+ < mat-icon *ngIf ="transaction.status == 'Failed' " class ="transfer-failed "
70+ matTooltip ="{{ t('balanceComponent.transactions.status.failure.tooltip') }} "> highlight_off</ mat-icon >
71+ < mat-icon *ngIf ="transaction.status != 'Success' && transaction.status != 'Failed' " class ="trx-pending "
72+ matTooltip ="{{ t('balanceComponent.transactions.status.pending.tooltip') }} "> schedule</ mat-icon >
73+ </ span >
5874 < div class ="center ">
5975 < div class ="trans-amount currency-value "> {{ transaction.price | number: '1.0-0' }}
6076 {{
6177 t("general.currency") }} / {{ transaction.quantity | number: '1.0-0' }} {{
6278 t("ipoComponent.bidStatus.pcs") }} </ div >
6379 < div class ="trans-date "> Tick: {{ transaction.targetTick | number: '1.0-0' }} </ div >
6480 </ div >
65- < div class ="send-receive-indicator ">
66- < button
67- *ngIf ="isOwnId(transaction.sourceId) && currentTick > transaction.targetTick && transaction.status !== 'Pending' "
68- mat-icon-button matTooltip ="{{ t('balanceComponent.repeatTransaction') }} "
69- (click) ="repeat(transaction) "> < mat-icon > repeat</ mat-icon > </ button >
70- < mat-icon class ="send "
71- matTooltip ="{{ t('balanceComponent.transactions.send.tooltip') }} "
72- *ngIf ="isOwnId(transaction.sourceId) "> arrow_downward</ mat-icon >
73- < mat-icon class ="send "
74- matTooltip ="{{ t('balanceComponent.transactions.send.tooltip') }} "
75- *ngIf ="!isOwnId(transaction.sourceId) "> empty</ mat-icon >
76- < mat-icon class ="receive "
77- matTooltip ="{{ t('balanceComponent.transactions.receive.tooltip') }} "
78- *ngIf ="isOwnId(transaction.destId) "> arrow_upward</ mat-icon >
79- < mat-icon class ="receive "
80- matTooltip ="{{ t('balanceComponent.transactions.receive.tooltip') }} "
81- *ngIf ="!isOwnId(transaction.destId) "> empty</ mat-icon >
82- </ div >
83- < div >
84- < div [class] ="{copy: true, ownId: isOwnId(transaction.sourceId)} ">
85- From: < span matTooltip ="{{ t('general.copy.tooltip') }} "
86- [cdkCopyToClipboard] ="transaction.sourceId "> {{ transaction.sourceId }} {{
87- getSeedName(transaction.sourceId) }}</ span >
81+ < div class ="address-group ">
82+ < div class ="send-receive-indicator ">
83+ < mat-icon class ="send "
84+ matTooltip ="{{ t('balanceComponent.transactions.send.tooltip') }} "
85+ *ngIf ="isOwnId(transaction.sourceId) "> arrow_downward</ mat-icon >
86+ < mat-icon class ="receive "
87+ matTooltip ="{{ t('balanceComponent.transactions.receive.tooltip') }} "
88+ *ngIf ="isOwnId(transaction.destId) "> arrow_upward</ mat-icon >
89+ </ div >
90+ < div >
91+ < div [class] ="{copy: true, ownId: isOwnId(transaction.sourceId)} ">
92+ From: < span matTooltip ="{{ t('general.copy.tooltip') }} "
93+ [cdkCopyToClipboard] ="transaction.sourceId "> {{
94+ getAddressDisplayName(transaction.sourceId) }}</ span >
95+ </ div >
96+ < div [class] ="{copy: true, ownId: isOwnId(transaction.destId)} ">
97+ To: < span matTooltip ="{{ t('general.copy.tooltip') }} "
98+ [cdkCopyToClipboard] ="transaction.destId "> {{
99+ getAddressDisplayName(transaction.destId) }}</ span >
100+ </ div >
88101 </ div >
89- < div [class] ="{copy: true, ownId: isOwnId(transaction.destId)} "> To: < span
90- matTooltip ="{{ t('general.copy.tooltip') }} "
91- [cdkCopyToClipboard] ="transaction.destId "> {{ transaction.destId }} {{
92- getSeedName(transaction.destId) }}</ span > </ div >
93102 </ div >
94- < div >
95- < span *ngIf ="transaction.created "> Created: {{ transaction.created | date:'short'
96- }}< br > </ span >
97- < span *ngIf ="transaction.broadcasted && !transaction.stored "> Broadcasted: {{
98- transaction.broadcasted | date:'short' }}< br > </ span >
99- < span *ngIf ="transaction.stored "> Stored: {{ transaction.stored | date:'short'
100- }}< br > </ span >
101- < span *ngIf ="transaction.staged "> Staged: {{ transaction.staged | date:'short'
102- }}< br > </ span >
103- < span *ngIf ="transaction.confirmed "> Confirmed: {{ transaction.confirmed |
104- date:'short'
105- }}</ span >
103+ < div class ="trans-dates ">
104+ < span *ngIf ="transaction.created "> {{ transaction.created | dateTime }}</ span >
106105 </ div >
107106 </ div >
108107 </ ng-container >
0 commit comments