Skip to content

Commit e1c10c2

Browse files
author
k9ert
authored
Bugfix: Wrong device paths (#1936)
1 parent a45daba commit e1c10c2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cryptoadvance/specter/templates/wallet/new_wallet/import_wallet.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<input type="hidden" name="cosigner_{{ loop.index0 }}" value="{{ cosigner.alias }}">
2222
<a href="{{ url_for('devices_endpoint.device', device_alias=cosigner.alias) }}" style="text-decoration: none;" target="_blank">
2323
<div class="small-card radio">
24-
<img src="{{ url_for('static', filename='img/devices/' ~ cosigner.icon) }}" width="18px">
24+
<img src="{{ url_for('static', filename=cosigner.icon) }}" width="18px">
2525
{{ cosigner.name }}
2626
</div>
2727
</a>
@@ -35,7 +35,7 @@
3535
<div class="row overflow">
3636
{% for (unknown_cosigner, label) in unknown_cosigners %}
3737
<div class="small-card radio" onclick="showPageOverlay('unknown_cosigner_{{ loop.index0 }}_details')">
38-
<img src="{{ url_for('static', filename='img/devices/' ~ unknown_cosigners_types[loop.index0] ~ '_icon.svg') }}" width="18px">
38+
<img src="{{ url_for('static', filename=unknown_cosigners_types[loop.index0] ~ '_icon.svg') }}" width="18px">
3939
<input id="unknown_cosigner_{{ loop.index0 }}_name_input" type="hidden" name="unknown_cosigner_{{ loop.index0 }}_name" value="{% if label %}{{ label }}{% else %}{{ wallet_name }}{%if sigs_total > 1%} Cosigner {{ loop.index }}{%endif%}{% endif %}">
4040
<input type="hidden" name="unknown_cosigner_{{ loop.index0 }}_type" value="{{ unknown_cosigners_types[loop.index0] }}">
4141
<span id="unknown_cosigner_{{ loop.index0 }}_name">{% if label %}{{ label }}{% else %}{{ wallet_name }}{%if sigs_total > 1%} Cosigner {{ loop.index }}{%endif%}{% endif %}</span>

src/cryptoadvance/specter/templates/wallet/new_wallet/new_wallet.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<label style="position: relative;">
1414
<input type="{{ 'checkbox' if wallet_type == 'multisig' else 'radio' }}" {% if wallet_type == 'simple' %} onchange="document.getElementById('submit-device').click()" {% endif %} name="devices" value="{{ device.alias }}" class="hidden" chain="{{specter.chain}}" {% if not device.has_key_types(wallet_type, specter.chain) %}disabled{% endif %}>
1515
<div class="small-card radio" id="{{device.alias}}">
16-
<img src="{{ url_for('static', filename='img/devices/' ~ device.icon) }}" width="18px">
16+
<img src="{{ url_for('static', filename=device.icon) }}" width="18px">
1717
{{ device_name }}
1818
</div>
1919
{% if not device.has_key_types(wallet_type, specter.chain) %}

src/cryptoadvance/specter/templates/wallet/settings/wallet_settings.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{% for device in wallet.devices %}
4343
<a href="{{ url_for('devices_endpoint.device', device_alias=device.alias) }}" style="text-decoration: none;">
4444
<div class="small-card radio">
45-
<img src="{{ url_for('static', filename='img/devices/' ~ device.icon) }}" width="18px">
45+
<img src="{{ url_for('static', filename=device.icon) }}" width="18px">
4646
{{ device.name }}
4747
</div>
4848
</a>

0 commit comments

Comments
 (0)