Do not show reset button for user prompts

This commit is contained in:
maver 2023-07-17 20:08:32 +02:00
parent 7ea6e89b05
commit a921a26af5
1 changed files with 6 additions and 1 deletions

View File

@ -889,7 +889,12 @@ PromptManagerModule.prototype.loadPromptIntoEditForm = function (prompt) {
}
const resetPromptButton = document.getElementById(this.configuration.prefix + 'prompt_manager_popup_entry_form_reset');
resetPromptButton.dataset.pmPrompt = prompt.identifier;
if (true === prompt.system_prompt) {
resetPromptButton.style.display = 'block';
resetPromptButton.dataset.pmPrompt = prompt.identifier;
} else {
resetPromptButton.style.display = 'none';
}
const savePromptButton = document.getElementById(this.configuration.prefix + 'prompt_manager_popup_entry_form_save');
savePromptButton.dataset.pmPrompt = prompt.identifier;