Disable role select only when advanced mode is off
This commit is contained in:
parent
f395c99a5d
commit
796e52e537
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue