From 796e52e537374d3882ec83ec14d48d9422f6fa03 Mon Sep 17 00:00:00 2001 From: maver Date: Sat, 3 Jun 2023 02:17:33 +0200 Subject: [PATCH] Disable role select only when advanced mode is off --- public/scripts/PromptManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index 0f2e3e18d..8a49e042b 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -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; }