File tree Expand file tree Collapse file tree 3 files changed +31
-8
lines changed Expand file tree Collapse file tree 3 files changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ const AccountSummary: React.FC = () => {
69
69
< span > { l ( 'accountStatus' ) } </ span >
70
70
< StatusBadge pending = { account . isPending } > { account . stateLabel } </ StatusBadge >
71
71
</ SummaryItem >
72
+ < SummaryItem >
73
+ < span > { l ( 'traderKey' ) } </ span >
74
+ < Tip overlay = { account . traderKey } capitalize = { false } >
75
+ < span > { account . traderKeyEllipsed } </ span >
76
+ </ Tip >
77
+ </ SummaryItem >
72
78
< SummaryItem >
73
79
< span > { l ( 'fundingTxn' ) } </ span >
74
80
< Tip overlay = { account . fundingTxnId } capitalize = { false } >
@@ -122,14 +128,25 @@ const AccountSummary: React.FC = () => {
122
128
</ SummaryItem >
123
129
</ >
124
130
) : (
125
- < Button
126
- primary
127
- ghost
128
- disabled = { account . stateLabel !== 'Open' }
129
- onClick = { accountSectionView . showFundAccount }
130
- >
131
- { l ( 'fundAccount' ) }
132
- </ Button >
131
+ < SummaryItem >
132
+ < Button
133
+ danger
134
+ ghost
135
+ compact
136
+ disabled = { account . stateLabel !== 'Open' }
137
+ onClick = { accountSectionView . showCloseAccount }
138
+ >
139
+ { l ( 'close' ) }
140
+ </ Button >
141
+ < Button
142
+ primary
143
+ ghost
144
+ disabled = { account . stateLabel !== 'Open' }
145
+ onClick = { accountSectionView . showFundAccount }
146
+ >
147
+ { l ( 'fundAccount' ) }
148
+ </ Button >
149
+ </ SummaryItem >
133
150
) }
134
151
</ Actions >
135
152
</ >
Original file line number Diff line number Diff line change 95
95
"cmps.pool.account.AccountSummary.expiresIn" : " Expires in" ,
96
96
"cmps.pool.account.AccountSummary.expiresHeight" : " {{remaining}} blocks (Height #{{height}})" ,
97
97
"cmps.pool.account.AccountSummary.accountStatus" : " Account Status" ,
98
+ "cmps.pool.account.AccountSummary.traderKey" : " Trader Key" ,
98
99
"cmps.pool.account.AccountSummary.fundingTxn" : " Funding Transaction" ,
99
100
"cmps.pool.account.AccountSummary.currentBalance" : " Current Balance" ,
100
101
"cmps.pool.account.AccountSummary.openOrdersCount" : " Open Orders" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ export default class Account {
22
22
this . update ( poolAccount ) ;
23
23
}
24
24
25
+ /** the first and last 6 chars of the trader key */
26
+ get traderKeyEllipsed ( ) {
27
+ return ellipseInside ( this . traderKey , 4 ) ;
28
+ }
29
+
25
30
/** the first and last 6 chars of the funding txn id */
26
31
get fundingTxnIdEllipsed ( ) {
27
32
return ellipseInside ( this . fundingTxnId , 4 ) ;
You can’t perform that action at this time.
0 commit comments