remove traces of execute on hide

This commit is contained in:
LenAnderson
2024-07-14 17:01:08 -04:00
parent 9a9befeb63
commit e256e55268
4 changed files with 0 additions and 20 deletions

View File

@ -132,10 +132,6 @@
</div> </div>
</div> </div>
<div id="qr--modal-executeProgress"></div> <div id="qr--modal-executeProgress"></div>
<label class="checkbox_label">
<input type="checkbox" id="qr--modal-executeHide">
<span title="Hide editor while executing"> Hide editor while executing</span>
</label>
<div id="qr--modal-executeErrors"></div> <div id="qr--modal-executeErrors"></div>
<div id="qr--modal-executeResult"></div> <div id="qr--modal-executeResult"></div>

View File

@ -74,7 +74,6 @@ export class QuickReply {
/**@type {HTMLElement}*/ editorExecuteErrors; /**@type {HTMLElement}*/ editorExecuteErrors;
/**@type {HTMLElement}*/ editorExecuteResult; /**@type {HTMLElement}*/ editorExecuteResult;
/**@type {HTMLElement}*/ editorDebugState; /**@type {HTMLElement}*/ editorDebugState;
/**@type {HTMLInputElement}*/ editorExecuteHide;
/**@type {Promise}*/ editorExecutePromise; /**@type {Promise}*/ editorExecutePromise;
/**@type {boolean}*/ isExecuting; /**@type {boolean}*/ isExecuting;
/**@type {SlashCommandAbortController}*/ abortController; /**@type {SlashCommandAbortController}*/ abortController;
@ -829,9 +828,6 @@ export class QuickReply {
/**@type {HTMLElement}*/ /**@type {HTMLElement}*/
const debugState = dom.querySelector('#qr--modal-debugState'); const debugState = dom.querySelector('#qr--modal-debugState');
this.editorDebugState = debugState; this.editorDebugState = debugState;
/**@type {HTMLInputElement}*/
const executeHide = dom.querySelector('#qr--modal-executeHide');
this.editorExecuteHide = executeHide;
/**@type {HTMLElement}*/ /**@type {HTMLElement}*/
const executeBtn = dom.querySelector('#qr--modal-execute'); const executeBtn = dom.querySelector('#qr--modal-execute');
this.editorExecuteBtn = executeBtn; this.editorExecuteBtn = executeBtn;
@ -985,9 +981,6 @@ export class QuickReply {
this.editorExecuteProgress.classList.remove('qr--aborted'); this.editorExecuteProgress.classList.remove('qr--aborted');
this.editorExecuteErrors.innerHTML = ''; this.editorExecuteErrors.innerHTML = '';
this.editorExecuteResult.innerHTML = ''; this.editorExecuteResult.innerHTML = '';
if (this.editorExecuteHide.checked) {
this.editorPopup.dlg.classList.add('qr--hide');
}
const syntax = this.editorDom.querySelector('#qr--modal-messageSyntaxInner'); const syntax = this.editorDom.querySelector('#qr--modal-messageSyntaxInner');
const updateScroll = (evt) => { const updateScroll = (evt) => {
let left = syntax.scrollLeft; let left = syntax.scrollLeft;
@ -1470,7 +1463,6 @@ export class QuickReply {
this.editorMessage.dispatchEvent(new Event('input', { bubbles:true })); this.editorMessage.dispatchEvent(new Event('input', { bubbles:true }));
this.editorExecutePromise = null; this.editorExecutePromise = null;
this.editorExecuteBtn.classList.remove('qr--busy'); this.editorExecuteBtn.classList.remove('qr--busy');
this.editorPopup.dlg.classList.remove('qr--hide');
this.editorDom.classList.remove('qr--isExecuting'); this.editorDom.classList.remove('qr--isExecuting');
this.isExecuting = false; this.isExecuting = false;
this.editorPopup.onClosing = null; this.editorPopup.onClosing = null;

View File

@ -574,9 +574,6 @@
border-radius: 5px; border-radius: 5px;
position: relative; position: relative;
} }
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor label:has(#qr--modal-executeHide) {
display: none;
}
.popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor #qr--modal-executeButtons { .popup:has(#qr--modalEditor) .popup-content > #qr--modalEditor #qr--modal-executeButtons {
display: flex; display: flex;
gap: 1em; gap: 1em;

View File

@ -642,11 +642,6 @@
} }
} }
} }
label:has(#qr--modal-executeHide) {
// hide editor is not working anyways
display: none;
}
#qr--modal-executeButtons { #qr--modal-executeButtons {
display: flex; display: flex;
gap: 1em; gap: 1em;