show_in = none removed. see #680
This commit is contained in:
parent
774c63ef9e
commit
1494651de6
4 changed files with 1 additions and 10 deletions
|
|
@ -219,10 +219,6 @@
|
|||
"message": "Both",
|
||||
"description": ""
|
||||
},
|
||||
"show_in_none": {
|
||||
"message": "None",
|
||||
"description": ""
|
||||
},
|
||||
"customPrompts_close_button": {
|
||||
"message": "Close button",
|
||||
"description": ""
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Prompts are the core user-facing feature of ThunderAI. Each prompt defines an AI
|
|||
| `enabled` | number | `0` = hidden, `1` = shown in menus |
|
||||
| `position_display` | number | Sort order in reading view (used when alphabetical ordering is off) |
|
||||
| `position_compose` | number | Sort order in compose view (used when alphabetical ordering is off) |
|
||||
| `show_in` | string | `"popup"` = popup only, `"context"` = context menu only, `"both"` = both, `"none"` = hidden from all menus. Default: `"popup"` for default/custom prompts, `"both"` for special prompts |
|
||||
| `show_in` | string | `"popup"` = popup only, `"context"` = context menu only, `"both"` = both. Default: `"popup"` for default/custom prompts, `"both"` for special prompts |
|
||||
|
||||
### Per-Prompt API Override Properties
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,6 @@
|
|||
<option value="popup">__MSG_show_in_popup__</option>
|
||||
<option value="context">__MSG_show_in_context__</option>
|
||||
<option value="both">__MSG_show_in_both__</option>
|
||||
<option value="none">__MSG_show_in_none__</option>
|
||||
</select>
|
||||
<br><br>
|
||||
<label for="selectActionNew" class="field_title">__MSG_customPrompts_form_label_Action__:</label>
|
||||
|
|
|
|||
|
|
@ -1091,9 +1091,6 @@ function loadPromptsList(values){
|
|||
case "both":
|
||||
show_in_output = `__MSG_show_in_both__`;
|
||||
break;
|
||||
case "none":
|
||||
show_in_output = `__MSG_show_in_none__`;
|
||||
break;
|
||||
}
|
||||
|
||||
let output = `<tr ` + ((values.is_default == 1) ? 'class="is_default"':'') + `>
|
||||
|
|
@ -1151,7 +1148,6 @@ function loadPromptsList(values){
|
|||
<option value="popup"` + ((values.show_in == "popup" || !values.show_in) ? ' selected':'') + `>__MSG_show_in_popup__</option>
|
||||
<option value="context"` + ((values.show_in == "context") ? ' selected':'') + `>__MSG_show_in_context__</option>
|
||||
<option value="both"` + ((values.show_in == "both") ? ' selected':'') + `>__MSG_show_in_both__</option>
|
||||
<option value="none"` + ((values.show_in == "none") ? ' selected':'') + `>__MSG_show_in_none__</option>
|
||||
</select>` +
|
||||
`<span class="show_in hiddendata"></span>
|
||||
<br><br>
|
||||
|
|
|
|||
Loading…
Reference in a new issue