wineater-bot 3.9.1 → 3.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8059,7 +8059,7 @@ class ka {
|
|
|
8059
8059
|
|
|
8060
8060
|
<div class="tile-top">
|
|
8061
8061
|
${p ? `<img src="${p}" alt="${d}" class="wine-image" />` : ""}
|
|
8062
|
-
|
|
8062
|
+
${v ? `<div class="wine-price">${c(v)} ${J.getCurrency("label")}</div>` : ""}
|
|
8063
8063
|
<h3 class="wine-title">${d}</h3>
|
|
8064
8064
|
</div>
|
|
8065
8065
|
|
|
@@ -961,7 +961,7 @@ margin: 5px 0;
|
|
|
961
961
|
|
|
962
962
|
<div class="tile-top">
|
|
963
963
|
${p?`<img src="${p}" alt="${d}" class="wine-image" />`:""}
|
|
964
|
-
|
|
964
|
+
${v?`<div class="wine-price">${c(v)} ${X.getCurrency("label")}</div>`:""}
|
|
965
965
|
<h3 class="wine-title">${d}</h3>
|
|
966
966
|
</div>
|
|
967
967
|
|
package/package.json
CHANGED
package/src/js/widget.js
CHANGED
|
@@ -99,7 +99,7 @@ export class WineWidget {
|
|
|
99
99
|
|
|
100
100
|
<div class="tile-top">
|
|
101
101
|
${image ? `<img src="${image}" alt="${title}" class="wine-image" />` : ''}
|
|
102
|
-
|
|
102
|
+
${!!price ? `<div class="wine-price">${formatPrice(price)} ${translator.getCurrency('label')}</div>` : ''}
|
|
103
103
|
<h3 class="wine-title">${title}</h3>
|
|
104
104
|
</div>
|
|
105
105
|
|
|
@@ -134,7 +134,7 @@ export class WineWidget {
|
|
|
134
134
|
resultsContainer.insertAdjacentHTML('beforeend', wineHTML);
|
|
135
135
|
const currentCard = resultsContainer.children[index];
|
|
136
136
|
|
|
137
|
-
if (!url) {
|
|
137
|
+
if (!url && this.widgetType === 'bar') {
|
|
138
138
|
const buyBtn = currentCard.querySelector('[data-toggle-info]');
|
|
139
139
|
const popup = currentCard.querySelector('.card-popup');
|
|
140
140
|
const closeBtn = currentCard.querySelector('.card-popup-close');
|