Условие для показа кнопки QR
This commit is contained in:
parent
5e683fcb55
commit
bd42af67aa
|
|
@ -251,7 +251,7 @@
|
|||
content += `<div class="qr-data">🃏 Данные карты: ${shortData}</div>`;
|
||||
}
|
||||
|
||||
const showQRBtn = (record.type === 'qr' || record.type === 'both') && record.qr_code ?
|
||||
const showQRBtn = (record.type === 'qr' || record.type === 'both') && record.has_qr ?
|
||||
`<button class="show-qr-btn" data-id="${record.id}">🖼️ Показать QR</button>` : '';
|
||||
|
||||
return `
|
||||
|
|
|
|||
Loading…
Reference in New Issue