mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
remove traces of execute on hide
This commit is contained in:
@ -132,10 +132,6 @@
|
||||
</div>
|
||||
</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-executeResult"></div>
|
||||
|
||||
|
@ -74,7 +74,6 @@ export class QuickReply {
|
||||
/**@type {HTMLElement}*/ editorExecuteErrors;
|
||||
/**@type {HTMLElement}*/ editorExecuteResult;
|
||||
/**@type {HTMLElement}*/ editorDebugState;
|
||||
/**@type {HTMLInputElement}*/ editorExecuteHide;
|
||||
/**@type {Promise}*/ editorExecutePromise;
|
||||
/**@type {boolean}*/ isExecuting;
|
||||
/**@type {SlashCommandAbortController}*/ abortController;
|
||||
@ -829,9 +828,6 @@ export class QuickReply {
|
||||
/**@type {HTMLElement}*/
|
||||
const debugState = dom.querySelector('#qr--modal-debugState');
|
||||
this.editorDebugState = debugState;
|
||||
/**@type {HTMLInputElement}*/
|
||||
const executeHide = dom.querySelector('#qr--modal-executeHide');
|
||||
this.editorExecuteHide = executeHide;
|
||||
/**@type {HTMLElement}*/
|
||||
const executeBtn = dom.querySelector('#qr--modal-execute');
|
||||
this.editorExecuteBtn = executeBtn;
|
||||
@ -985,9 +981,6 @@ export class QuickReply {
|
||||
this.editorExecuteProgress.classList.remove('qr--aborted');
|
||||
this.editorExecuteErrors.innerHTML = '';
|
||||
this.editorExecuteResult.innerHTML = '';
|
||||
if (this.editorExecuteHide.checked) {
|
||||
this.editorPopup.dlg.classList.add('qr--hide');
|
||||
}
|
||||
const syntax = this.editorDom.querySelector('#qr--modal-messageSyntaxInner');
|
||||
const updateScroll = (evt) => {
|
||||
let left = syntax.scrollLeft;
|
||||
@ -1470,7 +1463,6 @@ export class QuickReply {
|
||||
this.editorMessage.dispatchEvent(new Event('input', { bubbles:true }));
|
||||
this.editorExecutePromise = null;
|
||||
this.editorExecuteBtn.classList.remove('qr--busy');
|
||||
this.editorPopup.dlg.classList.remove('qr--hide');
|
||||
this.editorDom.classList.remove('qr--isExecuting');
|
||||
this.isExecuting = false;
|
||||
this.editorPopup.onClosing = null;
|
||||
|
@ -574,9 +574,6 @@
|
||||
border-radius: 5px;
|
||||
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 {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
|
@ -642,11 +642,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label:has(#qr--modal-executeHide) {
|
||||
// hide editor is not working anyways
|
||||
display: none;
|
||||
}
|
||||
#qr--modal-executeButtons {
|
||||
display: flex;
|
||||
gap: 1em;
|
||||
|
Reference in New Issue
Block a user