Skip to content

Commit 9c7d538

Browse files
committed
Fix v-html warning for specifically sanitized SVG.
1 parent 9c2d3ff commit 9c7d538

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-vue-wallet ChangeLog
22

3+
## 29.4.1 - 2024-10-dd
4+
5+
### Fixed
6+
- Disable `v-html` warning for specifically-sanitized `contactlessSvg`.
7+
38
## 29.4.0 - 2024-10-15
49

510
### Changed

components/CredentialCardBundle.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
class="q-mr-auto"
2525
:src="credentialOverrides.image"
2626
size="md" />
27+
<!-- eslint-disable vue/no-v-html
28+
this is ok to disable only because `contactlessSvg` has been
29+
specifically sanitized -->
2730
<span v-html="contactlessSvg" />
31+
<!-- eslint-enable -->
2832
</div>
2933
</template>
3034
</credential-switch>

components/CredentialDetails.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
class="q-mr-auto"
3737
:src="credentialOverrides.image"
3838
size="md" />
39+
<!-- eslint-disable vue/no-v-html
40+
this is ok to disable only because `contactlessSvg` has
41+
been specifically sanitized -->
3942
<span v-html="contactlessSvg" />
43+
<!-- eslint-enable -->
4044
</div>
4145
</template>
4246
</credential-switch>

components/NfcShare.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
@click="writeNfc">
1111
<template #default>
1212
<div class="row justify-between items-center">
13+
<!-- eslint-disable vue/no-v-html
14+
this is ok to disable only because `contactlessSvg` has been
15+
specifically sanitized -->
1316
<div
1417
style="height: 24px; margin-right: 8px;"
1518
v-html="contactlessSvg" />
19+
<!-- eslint-enable -->
1620
<div>
1721
Tap to Share
1822
</div>

0 commit comments

Comments
 (0)