Skip to content

Commit 23295f5

Browse files
committed
allow html in action label
1 parent 1be590e commit 23295f5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zwohansel/buybuttonstatesynchronizer",
3-
"version": "2.1.3",
3+
"version": "2.2.0",
44
"description": "Allows multiple plugins to control the buy button state.",
55
"type": "shopware-platform-plugin",
66
"license": "MIT",

src/Resources/app/storefront/dist/storefront/js/buy-button-state-synchronizer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Resources/app/storefront/src/buybuttonstatesynchronizer/buybuttonstatesynchronizer.plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class BuyButtonStateSynchronizer extends Plugin {
162162
if (action.label != null) {
163163
const actionButton = document.createElement("button");
164164
actionButton.classList.add("btn", "btn-primary");
165-
actionButton.innerText = action.label;
165+
actionButton.innerHTML = action.label;
166166
actionButton.onclick = (e) => {
167167
$("#buy-button-state-synchronizer-modal").modal("hide");
168168
action.callback(e);

0 commit comments

Comments
 (0)