Do not show reset button for user prompts
This commit is contained in:
parent
7ea6e89b05
commit
a921a26af5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue