Small fixes to /popup, /buttons and QR popup

- FIx /popup and /buttons commands to use the new popups
- Change /buttons to utilize data results
- Fix "hide while executing" option from QR editor
- Fix QR editor throwing an error on execution
This commit is contained in:
Wolfsblvt
2024-06-19 01:40:22 +02:00
parent e7772f04a4
commit dca81aef3d
3 changed files with 24 additions and 9 deletions

View File

@ -557,7 +557,7 @@ export class QuickReply {
this.editorExecuteErrors.innerHTML = '';
this.editorExecuteResult.innerHTML = '';
if (this.editorExecuteHide.checked) {
this.editorPopup.dom.classList.add('qr--hide');
this.editorPopup.dlg.classList.add('qr--hide');
}
try {
this.editorExecutePromise = this.execute({}, true);
@ -585,10 +585,11 @@ export class QuickReply {
<div>${ex.message}</div>
`;
}
const t = toastr.success('b');
}
this.editorExecutePromise = null;
this.editorExecuteBtn.classList.remove('qr--busy');
this.editorPopup.dom.classList.remove('qr--hide');
this.editorPopup.dlg.classList.remove('qr--hide');
}
updateEditorProgress(done, total) {