Making WordPress.org

Changeset 13872

Timestamp:
07/03/2024 08:11:36 AM (5 weeks ago)
Author:
amieiro
Message:

Translate: Sync gp-translation-helpers from GitHub

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/editor.js

    r13809 r13872  
    4141            cacheTranslationHelpersForARow( nextEditor );
    4242        }
    43 
    44         if ( chatgpt_review_enabled && $gp_comment_feedback_settings.openai_key && $gp_editor_options.can_approve && ( 'waiting' === translation_status || 'fuzzy' === translation_status ) ) {
     43        if ( ! $gp_comment_feedback_settings.openai_key || ! $gp_editor_options.can_approve || ( 'waiting' !== translation_status && 'fuzzy' !== translation_status ) ) {
     44            tr.find( '.details-chatgpt' ).hide();
     45        } else if ( chatgpt_review_enabled ) {
    4546            fetchOpenAIReviewResponse( rowId, tr, false );
    46         } else {
    47             tr.find( '.details-chatgpt, .openai-review' ).hide();
    4847        }
    4948    } );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/js/reject-feedback.js

    r12656 r13872  
    4040                                return selectedRow.attr( 'row' );
    4141                            }
    42                             $( this ).prop( 'checked', false );
    4342                            return null;
    4443                        },
Note: See TracChangeset for help on using the changeset viewer.