Merge branch 'hotfix/0.21.1' into develop

This commit is contained in:
mateuswetah 2024-04-25 16:39:05 -03:00
commit 7560e13bfb
6 changed files with 11 additions and 8 deletions

View File

@ -4,7 +4,7 @@ Tags: museums, archives, GLAM, collections, repository
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.0
Stable tag: 0.21.0
Stable tag: 0.21.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

View File

@ -5,17 +5,17 @@ Plugin URI: https://tainacan.org/
Description: Open source, powerful and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional repository platform.
Author: Tainacan.org
Author URI: https://tainacan.org/
Version: 0.21.0
Version: 0.21.1
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.0
Stable tag: 0.21.0
Stable tag: 0.21.1
Text Domain: tainacan
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
const TAINACAN_VERSION = '0.21.0';
const TAINACAN_VERSION = '0.21.1';
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
$TAINACAN_BASE_URL = plugins_url('', __FILE__);

View File

@ -682,7 +682,7 @@ export default {
if ( !$event.from.classList.contains('active-metadata-area') ) {
this.addNewMetadatum(this.getMetadatumTypes()[$event.oldIndex], $event.newIndex, sectionIndex);
$event.originalTarget.removeChild($event.item)
$event.to.removeChild($event.item)
} else {
this.isLoadingMetadataSections = true;
@ -698,7 +698,7 @@ export default {
newMetadataSectionsList[previousSectionIndex].metadata_object_list = previousSectionMetadataObjectList;
this.updateMetadataSections(newMetadataSectionsList);
$event.originalTarget.removeChild($event.item);
$event.to.removeChild($event.item);
this.updateMetadatum({
collectionId: this.collectionId,

View File

@ -371,7 +371,7 @@ export default {
case 'add':
if ( !$event.from.classList.contains('active-metadata-area') ) {
this.addNewMetadatum(this.getMetadatumTypes()[$event.oldIndex], $event.newIndex);
$event.originalTarget.removeChild($event.item);
$event.to.removeChild($event.item);
}
break;
case 'remove':

View File

@ -338,7 +338,7 @@
case 'add':
if ( !$event.from.classList.contains('active-metadata-area') ) {
this.addNewMetadatum(this.getMetadatumTypes()[$event.oldIndex], $event.newIndex);
$event.originalTarget.removeChild($event.item);
$event.to.removeChild($event.item);
}
break;
case 'remove':

View File

@ -304,6 +304,7 @@ html.is-clipped .page-container-small:not(.is-filters-menu-open) {
.taginput-container .input:hover {
border: none !important;
}
.metadata-type-url .multivalue-separator,
.metadata-type-ainacan_url_plugin_metadata_type .multivalue-separator,
.metadata-type-tainacan_url_plugin_metadata_type .multivalue-separator {
display: block;
@ -314,10 +315,12 @@ html.is-clipped .page-container-small:not(.is-filters-menu-open) {
color: transparent !important;
margin: 1em auto 1em 0 !important;
}
.metadata-type-url .wp-block-buttons,
.metadata-type-ainacan_url_plugin_metadata_type .wp-block-buttons,
.metadata-type-tainacan_url_plugin_metadata_type .wp-block-buttons {
display: flex !important;
}
.metadata-type-url .wp-block-buttons>.wp-block-button,
.metadata-type-ainacan_url_plugin_metadata_type .wp-block-buttons>.wp-block-button,
.metadata-type-tainacan_url_plugin_metadata_type .wp-block-buttons>.wp-block-button {
width: auto !important;