Skip to content

Commit 0a5c11c

Browse files
UIUX: Clearer unconfirmed transaction icons (#1899)
1 parent c11f0b1 commit 0a5c11c

File tree

5 files changed

+281
-7
lines changed

5 files changed

+281
-7
lines changed
Lines changed: 79 additions & 0 deletions
Loading
Lines changed: 57 additions & 0 deletions
Loading
Lines changed: 57 additions & 0 deletions
Loading
Lines changed: 82 additions & 0 deletions
Loading

src/cryptoadvance/specter/templates/includes/tx-row.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -435,21 +435,20 @@ <h1>${rbfType == 'cancel' ? '{{ _("Cancel") }}' : '{{ _("Speed up") }}'} {{ _("t
435435
}
436436

437437
getCategoryImg(category, isConfirmed) {
438-
if (!isConfirmed) {
439-
return `{{ url_for('static', filename='img') }}/clock.svg`;
440-
}
438+
var clockString = isConfirmed ? '' : '-clock';
439+
441440
switch (category) {
442441
case "send":
443-
return `{{ url_for('static', filename='img') }}/send.svg`;
442+
return `{{ url_for('static', filename='img') }}/send${clockString}.svg`;
444443
case "receive":
445-
return `{{ url_for('static', filename='img') }}/receive.svg`;
444+
return `{{ url_for('static', filename='img') }}/receive${clockString}.svg`;
446445
case "immature":
447446
case "generate":
448447
return `{{ url_for('static', filename='img') }}/gear.svg`;
449448
case "selftransfer":
450-
return `{{ url_for('static', filename='img') }}/transfer.svg`;
449+
return `{{ url_for('static', filename='img') }}/transfer${clockString}.svg`;
451450
case "mixed":
452-
return `{{ url_for('static', filename='img') }}/mixed.svg`;
451+
return `{{ url_for('static', filename='img') }}/mixed${clockString}.svg`;
453452
}
454453
}
455454
}

0 commit comments

Comments
 (0)