Disable role select only when advanced mode is off

This commit is contained in:
maver 2023-06-03 02:17:33 +02:00
parent f395c99a5d
commit 796e52e537
1 changed files with 2 additions and 1 deletions

View File

@ -354,7 +354,8 @@ PromptManagerModule.prototype.loadPromptIntoEditForm = function (prompt) {
roleField.value = prompt.role ?? '';
promptField.value = prompt.content ?? '';
if (true === prompt.system_prompt) {
if (true === prompt.system_prompt &&
false === this.serviceSettings.prompt_manager_settings.showAdvancedSettings) {
roleField.disabled = true;
}