diff --git a/composer.json b/composer.json index 98a04bec..c38c4e6a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "smartling/wordpress-connector", "license": "GPL-2.0-or-later", - "version": "5.5.1", + "version": "5.5.2", "description": "", "type": "wordpress-plugin", "repositories": [ diff --git a/js/app.js b/js/app.js index 7464a168..2e8a0a52 100644 --- a/js/app.js +++ b/js/app.js @@ -437,6 +437,22 @@ function JobWizard({ isBulkSubmitPage, contentType, contentId, locales, ajaxUrl, relations.length > 0 && el('fieldset', { style: { marginTop: '16px', border: '1px solid #ddd', padding: '12px', borderRadius: '4px' } }, el('legend', { style: { fontWeight: 600, padding: '0 8px' } }, 'Related content to be uploaded'), + el('div', { style: { display: 'flex', gap: '8px', marginBottom: '8px' } }, + el(Button, { + variant: 'secondary', + size: 'small', + onClick: () => { + const all = {}; + relations.forEach(r => { all[`${r.contentType}-${r.id}`] = true; }); + setSelectedRelations(all); + } + }, 'Check All'), + el(Button, { + variant: 'secondary', + size: 'small', + onClick: () => setSelectedRelations({}) + }, 'Uncheck All') + ), el('div', { style: { maxHeight: '200px', overflowY: 'auto' } }, relations.map(rel => { const key = `${rel.contentType}-${rel.id}`; @@ -450,7 +466,7 @@ function JobWizard({ isBulkSubmitPage, contentType, contentId, locales, ajaxUrl, style: { width: '30px', height: '30px', objectFit: 'cover', verticalAlign: 'middle', marginLeft: '5px' } }) : null; - return el('label', { key, style: { display: 'flex', alignItems: 'center', marginBottom: '8px', cursor: 'pointer' } }, + return el('label', { key, style: { display: 'flex', alignItems: 'center', margin: '8px 0', cursor: 'pointer' } }, el('input', { type: 'checkbox', checked: selectedRelations[key] || false, diff --git a/readme.txt b/readme.txt index 7bf8845c..f225c18c 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: translation, localization, multilingual, internationalization, smartling Requires at least: 5.5 Tested up to: 6.9 Requires PHP: 8.0 -Stable tag: 5.5.1 +Stable tag: 5.5.2 License: GPLv2 or later Translate content in WordPress quickly and seamlessly with Smartling, the industry-leading Translation Management System. @@ -62,6 +62,9 @@ Additional information on the Smartling Connector for WordPress can be found [he 3. Track translation status within WordPress from the Submissions Board. View overall progress of submitted translation requests as well as resend updated content. == Changelog == += 5.5.2 = +* Added "Check All" and "Uncheck All" buttons to the related assets list + = 5.5.1 = * Fixed broken HTML in the content edit view that prevented WordPress postboxes below the Smartling box from opening after the Smartling box was collapsed diff --git a/smartling-connector.php b/smartling-connector.php index 9d36b118..10a3e036 100755 --- a/smartling-connector.php +++ b/smartling-connector.php @@ -11,7 +11,7 @@ * Plugin Name: Smartling Connector * Plugin URI: https://www.smartling.com/products/automate/integrations/wordpress/ * Description: Integrate your WordPress site with Smartling to upload your content and download translations. - * Version: 5.5.1 + * Version: 5.5.2 * Author: Smartling * Author URI: https://www.smartling.com * License: GPL-2.0+