mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Disable role select only when advanced mode is off
This commit is contained in:
@ -354,7 +354,8 @@ PromptManagerModule.prototype.loadPromptIntoEditForm = function (prompt) {
|
|||||||
roleField.value = prompt.role ?? '';
|
roleField.value = prompt.role ?? '';
|
||||||
promptField.value = prompt.content ?? '';
|
promptField.value = prompt.content ?? '';
|
||||||
|
|
||||||
if (true === prompt.system_prompt) {
|
if (true === prompt.system_prompt &&
|
||||||
|
false === this.serviceSettings.prompt_manager_settings.showAdvancedSettings) {
|
||||||
roleField.disabled = true;
|
roleField.disabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user