Skip to content

Commit

Permalink
Widget: add support for html inside pretix-button
Browse files Browse the repository at this point in the history
  • Loading branch information
wiffbi committed Jan 17, 2024
1 parent 6cf8c7d commit abbf7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/static/pretixpresale/js/widget/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ Vue.component('pretix-button', {
+ '<input type="hidden" name="locale" :value="$root.lang" />'
+ '<input type="hidden" name="widget_data" :value="$root.widget_data_json" />'
+ '<input type="hidden" v-for="item in $root.items" :name="item.item" :value="item.count" />'
+ '<button class="pretix-button" @click="buy">{{ $root.button_text }}</button>'
+ '<button class="pretix-button" @click="buy" v-html="$root.button_text"></button>'
+ '</form>'
+ '<div class="pretix-widget-clear"></div>'
+ '</div>'
Expand Down

0 comments on commit abbf7bd

Please sign in to comment.