Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Whirlpool
whirlpool-gui
Commits
f36049e4
Commit
f36049e4
authored
Dec 14, 2020
by
zeroleak
Browse files
cleanup
parent
34d4e9b4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/components/Utxo/UtxosTable.js
app/components/Utxo/UtxosTable.js
+1
-1
app/services/utils.js
app/services/utils.js
+2
-2
No files found.
app/components/Utxo/UtxosTable.js
View file @
f36049e4
...
@@ -134,7 +134,7 @@ const UtxosTable = ({ controls, pool, mixs, account, utxos, tableKey }) => {
...
@@ -134,7 +134,7 @@ const UtxosTable = ({ controls, pool, mixs, account, utxos, tableKey }) => {
accessor
:
o
=>
o
.
lastActivityElapsed
,
accessor
:
o
=>
o
.
lastActivityElapsed
,
Cell
:
o
=>
{
Cell
:
o
=>
{
const
lastActivity
=
mixService
.
computeLastActivity
(
o
.
row
.
original
);
const
lastActivity
=
mixService
.
computeLastActivity
(
o
.
row
.
original
);
return
lastActivity
?
lastActivity
:
'
-
'
return
<
small
>
{
lastActivity
?
lastActivity
:
'
-
'
}
<
/small
>
}
}
},
},
{
{
...
...
app/services/utils.js
View file @
f36049e4
...
@@ -134,7 +134,7 @@ class Utils {
...
@@ -134,7 +134,7 @@ class Utils {
if
(
utxo
.
status
===
UTXO_STATUS
.
MIX_FAILED
)
{
if
(
utxo
.
status
===
UTXO_STATUS
.
MIX_FAILED
)
{
return
<
FontAwesomeIcon
icon
=
{
Icons
.
faSquare
}
size
=
'
xs
'
color
=
'
red
'
title
=
'
MIX FAILED
'
/>
return
<
FontAwesomeIcon
icon
=
{
Icons
.
faSquare
}
size
=
'
xs
'
color
=
'
red
'
title
=
'
MIX FAILED
'
/>
}
}
if
(
(
utxo
.
account
===
WHIRLPOOL_ACCOUNTS
.
POSTMIX
&&
utxo
.
mixsDone
>=
1
&&
utxo
.
mixableStatus
===
MIXABLE_STATUS
.
MIXABLE
)
||
utxo
.
status
===
UTXO_STATUS
.
MIX_SUCCESS
)
{
if
(
utxo
.
account
===
WHIRLPOOL_ACCOUNTS
.
POSTMIX
)
{
return
<
FontAwesomeIcon
icon
=
{
Icons
.
faCheck
}
size
=
'
xs
'
color
=
'
green
'
title
=
'
MIXED
'
/>
return
<
FontAwesomeIcon
icon
=
{
Icons
.
faCheck
}
size
=
'
xs
'
color
=
'
green
'
title
=
'
MIXED
'
/>
}
}
...
@@ -146,7 +146,7 @@ class Utils {
...
@@ -146,7 +146,7 @@ class Utils {
case
MIXABLE_STATUS
.
NO_POOL
:
case
MIXABLE_STATUS
.
NO_POOL
:
return
<
span
><
/span
>
return
<
span
><
/span
>
case
MIXABLE_STATUS
.
UNCONFIRMED
:
case
MIXABLE_STATUS
.
UNCONFIRMED
:
return
<
FontAwesomeIcon
icon
=
{
Icons
.
faClock
}
size
=
'
xs
'
color
=
'
orange
'
title
=
'
Unconfirmed
'
/>
return
<
FontAwesomeIcon
icon
=
{
Icons
.
faClock
}
size
=
'
xs
'
title
=
'
Unconfirmed
'
className
=
'
text-muted
'
/>
}
}
return
undefined
return
undefined
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment