mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update quick edits first
This commit is contained in:
@ -607,10 +607,6 @@ PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSetti
|
|||||||
eventSource.on(event_types.OAI_PRESET_CHANGED, settings => {
|
eventSource.on(event_types.OAI_PRESET_CHANGED, settings => {
|
||||||
// Save configuration and wrap everything up.
|
// Save configuration and wrap everything up.
|
||||||
this.saveServiceSettings().then(() => {
|
this.saveServiceSettings().then(() => {
|
||||||
this.hidePopup();
|
|
||||||
this.clearEditForm();
|
|
||||||
this.renderDebounced();
|
|
||||||
|
|
||||||
const mainPrompt = this.getPromptById('main');
|
const mainPrompt = this.getPromptById('main');
|
||||||
this.updateQuickEdit('main', mainPrompt);
|
this.updateQuickEdit('main', mainPrompt);
|
||||||
|
|
||||||
@ -619,6 +615,10 @@ PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSetti
|
|||||||
|
|
||||||
const jailbreakPrompt = this.getPromptById('jailbreak');
|
const jailbreakPrompt = this.getPromptById('jailbreak');
|
||||||
this.updateQuickEdit('jailbreak', jailbreakPrompt);
|
this.updateQuickEdit('jailbreak', jailbreakPrompt);
|
||||||
|
|
||||||
|
this.hidePopup();
|
||||||
|
this.clearEditForm();
|
||||||
|
this.renderDebounced();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user