Add user icon for user prompts
To be consistent with global and marker icons
This commit is contained in:
parent
bc4befeb22
commit
405a680059
|
@ -29,14 +29,10 @@
|
|||
display: inline !important;
|
||||
}
|
||||
|
||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_marker .fa-thumb-tack {
|
||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt .completion_prompt_manager_prompt_name .fa-solid {
|
||||
padding: 0 0.5em;
|
||||
color: var(--white50a);
|
||||
}
|
||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt_name .fa-globe {
|
||||
padding: 0 0.4em;
|
||||
color: var(--white50a);
|
||||
}
|
||||
|
||||
#completion_prompt_manager #completion_prompt_manager_list .completion_prompt_manager_prompt_invisible {
|
||||
display: none;
|
||||
|
|
|
@ -703,7 +703,7 @@ PromptManagerModule.prototype.isPromptEditAllowed = function (prompt) {
|
|||
* @returns {boolean} True if the prompt can be deleted, false otherwise.
|
||||
*/
|
||||
PromptManagerModule.prototype.isPromptToggleAllowed = function (prompt) {
|
||||
return !this.configuration.toggleDisabled.includes(prompt.identifier);
|
||||
return prompt.marker ? false : !this.configuration.toggleDisabled.includes(prompt.identifier);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1249,23 +1249,18 @@ PromptManagerModule.prototype.renderPromptManagerListItems = function () {
|
|||
<span class="${prefix}prompt_manager_prompt_name" data-pm-name="${prompt.name}">
|
||||
${prompt.marker ? '<span class="fa-solid fa-thumb-tack" title="Prompt Marker"></span>' : ''}
|
||||
${!prompt.marker && prompt.system_prompt ? '<span class="fa-solid fa-globe" title="Global Prompt"></span>' : ''}
|
||||
${!prompt.marker && !prompt.system_prompt ? '<span class="fa-solid fa-user" title="User Prompt"></span>' : ''}
|
||||
${prompt.name}
|
||||
</span>
|
||||
${prompt.marker
|
||||
? `<span>
|
||||
<span class="prompt_manager_prompt_controls">
|
||||
<span></span>
|
||||
${inspectSpanHtml}
|
||||
</span>
|
||||
</span>`
|
||||
: `<span>
|
||||
<span>
|
||||
<span class="prompt_manager_prompt_controls">
|
||||
${detachSpanHtml}
|
||||
${editSpanHtml}
|
||||
${inspectSpanHtml}
|
||||
${toggleSpanHtml}
|
||||
</span>
|
||||
</span>
|
||||
`}
|
||||
</span>
|
||||
|
||||
<span class="prompt_manager_prompt_tokens" data-pm-tokens="${calculatedTokens}"><span class="${warningClass}" title="${warningTitle}"> </span>${calculatedTokens}</span>
|
||||
</li>
|
||||
`;
|
||||
|
|
Loading…
Reference in New Issue