Removed quick regenerate button Response to change request.
| @@ -4144,12 +4144,6 @@ | ||
| 4144 | 4144 | Quick "Continue" button |
| 4145 | 4145 | </small> |
| 4146 | 4146 | </label> |
| 4147 | - <label class="checkbox_label" for="quick_regenerate" title="Show a button in the input area to ask the AI regenerate its last message." data-i18n="[title]Show a button in the input area to ask the AI regenerate its last message"> | |
| 4148 | - <input id="quick_regenerate" type="checkbox" /> | |
| 4149 | - <small data-i18n="Quick 'Regenerate' button"> | |
| 4150 | - Quick "Regenerate" button | |
| 4151 | - </small> | |
| 4152 | - </label> | |
| 4153 | 4147 | <label class="checkbox_label" for="quick_impersonate" title="Show a button in the input area to ask the AI to impersonate your character for a single message." data-i18n="[title]Show a button in the input area to ask the AI to impersonate your character for a single message"> |
| 4154 | 4148 | <input id="quick_impersonate" type="checkbox" /> |
| 4155 | 4149 | <small data-i18n="Quick 'Impersonate' button"> |
| @@ -6355,7 +6349,6 @@ | ||
| 6355 | 6349 | <i class="fa-solid fa-circle-stop"></i> |
| 6356 | 6350 | </div> |
| 6357 | 6351 | <div id="mes_impersonate" class="fa-solid fa-user-secret interactable displayNone" title="Ask AI to write your message for you" data-i18n="[title]Ask AI to write your message for you" tabindex="0"></div> |
| 6358 | - <div id="mes_regenerate" class="fa-solid fa-repeat interactable displayNone" title="Regenerate last message" data-i18n="[title]Regenerate last message" tabindex="0"></div> | |
| 6359 | 6352 | <div id="mes_continue" class="fa-fw fa-solid fa-arrow-right interactable displayNone" title="Continue the last message" data-i18n="[title]Continue the last message"></div> |
| 6360 | 6353 | <div id="send_but" class="fa-solid fa-paper-plane interactable displayNone" title="Send a message" data-i18n="[title]Send a message"></div> |
| 6361 | 6354 | </div> |
| @@ -5610,7 +5610,6 @@ export function activateSendButtons() { | ||
| 5610 | 5610 | is_send_press = false; |
| 5611 | 5611 | $('#send_but').removeClass('displayNone'); |
| 5612 | 5612 | $('#mes_continue').removeClass('displayNone'); |
| 5613 | - $('#mes_regenerate').removeClass('displayNone'); | |
| 5614 | 5613 | $('#mes_impersonate').removeClass('displayNone'); |
| 5615 | 5614 | $('.mes_buttons:last').show(); |
| 5616 | 5615 | hideStopButton(); |
| @@ -5619,7 +5618,6 @@ export function activateSendButtons() { | ||
| 5619 | 5618 | export function deactivateSendButtons() { |
| 5620 | 5619 | $('#send_but').addClass('displayNone'); |
| 5621 | 5620 | $('#mes_continue').addClass('displayNone'); |
| 5622 | - $('#mes_regenerate').addClass('displayNone'); | |
| 5623 | 5621 | $('#mes_impersonate').addClass('displayNone'); |
| 5624 | 5622 | showStopButton(); |
| 5625 | 5623 | } |
| @@ -9099,14 +9097,14 @@ jQuery(async function () { | ||
| 9099 | 9097 | $('#send_textarea').on('focusin focus click', () => { |
| 9100 | 9098 | S_TAPreviouslyFocused = true; |
| 9101 | 9099 | }); |
| 9102 | 9100 | $('#send_but, #option_regenerate, #option_continue, #mes_continue, #mes_regenerate, #mes_impersonate').on('click', () => { |
| 9103 | 9101 | if (S_TAPreviouslyFocused) { |
| 9104 | 9102 | $('#send_textarea').focus(); |
| 9105 | 9103 | } |
| 9106 | 9104 | }); |
| 9107 | 9105 | $(document).click(event => { |
| 9108 | 9106 | if ($(':focus').attr('id') !== 'send_textarea') { |
| 9109 | 9107 | var validIDs = ['options_button', 'send_but', 'mes_regenerate', 'mes_impersonate', 'mes_continue', 'send_textarea', 'option_regenerate', 'option_continue']; |
| 9110 | 9108 | if (!validIDs.includes($(event.target).attr('id'))) { |
| 9111 | 9109 | S_TAPreviouslyFocused = false; |
| 9112 | 9110 | } |
| @@ -9142,11 +9140,6 @@ jQuery(async function () { | ||
| 9142 | 9140 | debouncedCharacterSearch(searchQuery); |
| 9143 | 9141 | }); |
| 9144 | 9142 | |
| 9145 | - | |
| 9146 | - $('#mes_regenerate').on('click', function () { | |
| 9147 | - $('#option_regenerate').trigger('click'); | |
| 9148 | - }); | |
| 9149 | - | |
| 9150 | 9143 | $('#mes_impersonate').on('click', function () { |
| 9151 | 9144 | $('#option_impersonate').trigger('click'); |
| 9152 | 9145 | }); |
| @@ -311,7 +311,6 @@ function RA_checkOnlineStatus() { | ||
| 311 | 311 | $('#send_form').addClass('no-connection'); //entire input form area is red when not connected |
| 312 | 312 | $('#send_but').addClass('displayNone'); //send button is hidden when not connected; |
| 313 | 313 | $('#mes_continue').addClass('displayNone'); //continue button is hidden when not connected; |
| 314 | - $('#mes_regenerate').addClass('displayNone'); //continue button is hidden when not connected; | |
| 315 | 314 | $('#mes_impersonate').addClass('displayNone'); //continue button is hidden when not connected; |
| 316 | 315 | $('#API-status-top').removeClass('fa-plug'); |
| 317 | 316 | $('#API-status-top').addClass('fa-plug-circle-exclamation redOverlayGlow'); |
| @@ -329,7 +328,6 @@ function RA_checkOnlineStatus() { | ||
| 329 | 328 | if (!is_send_press && !(selected_group && is_group_generating)) { |
| 330 | 329 | $('#send_but').removeClass('displayNone'); //on connect, send button shows |
| 331 | 330 | $('#mes_continue').removeClass('displayNone'); //continue button is shown when connected |
| 332 | - $('#mes_regenerate').removeClass('displayNone'); //continue button is shown when connected | |
| 333 | 331 | $('#mes_impersonate').removeClass('displayNone'); //continue button is shown when connected |
| 334 | 332 | } |
| 335 | 333 | } |
| @@ -197,7 +197,6 @@ let power_user = { | ||
| 197 | 197 | prefer_character_prompt: true, |
| 198 | 198 | prefer_character_jailbreak: true, |
| 199 | 199 | quick_continue: false, |
| 200 | - quick_regenerate: false, | |
| 201 | 200 | quick_impersonate: false, |
| 202 | 201 | continue_on_send: false, |
| 203 | 202 | trim_spaces: true, |
| @@ -1588,10 +1587,8 @@ function loadPowerUserSettings(settings, data) { | ||
| 1588 | 1587 | $('#trim_spaces').prop('checked', power_user.trim_spaces); |
| 1589 | 1588 | $('#continue_on_send').prop('checked', power_user.continue_on_send); |
| 1590 | 1589 | $('#quick_continue').prop('checked', power_user.quick_continue); |
| 1591 | - $('#quick_regenerate').prop('checked', power_user.quick_continue); | |
| 1592 | 1590 | $('#quick_impersonate').prop('checked', power_user.quick_continue); |
| 1593 | 1591 | $('#mes_continue').css('display', power_user.quick_continue ? '' : 'none'); |
| 1594 | - $('#mes_regenerate').css('display', power_user.quick_regenerate? '' : 'none'); | |
| 1595 | 1592 | $('#mes_impersonate').css('display', power_user.quick_impersonate ? '' : 'none'); |
| 1596 | 1593 | $('#gestures-checkbox').prop('checked', power_user.gestures); |
| 1597 | 1594 | $('#auto_swipe').prop('checked', power_user.auto_swipe); |
| @@ -3738,13 +3735,6 @@ $(document).ready(() => { | ||
| 3738 | 3735 | saveSettingsDebounced(); |
| 3739 | 3736 | }); |
| 3740 | 3737 | |
| 3741 | - $('#quick_regenerate').on('input', function () { | |
| 3742 | - const value = !!$(this).prop('checked'); | |
| 3743 | - power_user.quick_regenerate = value; | |
| 3744 | - $('#mes_regenerate').css('display', value ? '' : 'none'); | |
| 3745 | - saveSettingsDebounced(); | |
| 3746 | - }); | |
| 3747 | - | |
| 3748 | 3738 | $('#quick_impersonate').on('input', function () { |
| 3749 | 3739 | const value = !!$(this).prop('checked'); |
| 3750 | 3740 | power_user.quick_impersonate = value; |
| @@ -716,10 +716,6 @@ body .panelControlBar { | ||
| 716 | 716 | order: 1; |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | -#mes_regenerate { | |
| 720 | - order: 1; | |
| 721 | -} | |
| 722 | - | |
| 723 | 719 | #mes_impersonate { |
| 724 | 720 | order: 1; |
| 725 | 721 | } |