Shows pagination warning after changing metadata. Small fixes.
This commit is contained in:
parent
fe3866458c
commit
e00da3d45a
|
@ -392,7 +392,7 @@
|
|||
all: true,
|
||||
order: 'asc',
|
||||
offset: 0,
|
||||
number: 10,
|
||||
number: 100,
|
||||
}).then((res) => {
|
||||
this.termList = res.terms;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</span>
|
||||
<span
|
||||
v-tooltip="{
|
||||
content: $i18n.get('info_itens_hidden_due_sorting'),
|
||||
content: $i18n.get('info_items_hidden_due_sorting'),
|
||||
autoHide: false,
|
||||
placement: 'auto-start'
|
||||
}"
|
||||
|
|
|
@ -1032,6 +1032,7 @@
|
|||
},
|
||||
onChangeOrderBy(metadatum) {
|
||||
this.$eventBusSearch.setOrderBy(metadatum);
|
||||
this.showItemsHiddingDueSorting();
|
||||
},
|
||||
onChangeOrder() {
|
||||
this.order == 'DESC' ? this.$eventBusSearch.setOrder('ASC') : this.$eventBusSearch.setOrder('DESC');
|
||||
|
@ -1321,7 +1322,12 @@
|
|||
},
|
||||
showItemsHiddingDueSorting() {
|
||||
|
||||
if (this.orderBy != 'title' && this.orderBy != 'date' && this.$userPrefs.get('neverShowItemsHiddenDueSortingDialog') != true) {
|
||||
if (this.orderBy != undefined &&
|
||||
this.orderBy != '' &&
|
||||
this.orderBy != 'title' &&
|
||||
this.orderBy != 'date' &&
|
||||
this.$userPrefs.get('neverShowItemsHiddenDueSortingDialog') != true) {
|
||||
|
||||
this.hasAnOpenModal = true;
|
||||
|
||||
this.$modal.open({
|
||||
|
|
|
@ -210,7 +210,8 @@
|
|||
justify-content: center; }
|
||||
.wp-block-tainacan-terms-modal .modal-terms-loadmore-section p {
|
||||
color: #555758;
|
||||
margin-right: 12px; }
|
||||
margin-right: 12px;
|
||||
margin-top: 2px; }
|
||||
.wp-block-tainacan-terms-modal .modal-terms-footer {
|
||||
border-top: 1px solid #e2e4e7;
|
||||
display: flex;
|
||||
|
@ -447,7 +448,8 @@
|
|||
justify-content: center; }
|
||||
.wp-block-tainacan-items-modal .modal-items-loadmore-section p {
|
||||
color: #555758;
|
||||
margin-right: 12px; }
|
||||
margin-right: 12px;
|
||||
margin-top: 2px; }
|
||||
.wp-block-tainacan-items-modal .modal-items-footer {
|
||||
border-top: 1px solid #e2e4e7;
|
||||
display: flex;
|
||||
|
@ -674,7 +676,8 @@
|
|||
justify-content: center; }
|
||||
.wp-block-tainacan-collections-modal .modal-collections-loadmore-section p {
|
||||
color: #555758;
|
||||
margin-right: 12px; }
|
||||
margin-right: 12px;
|
||||
margin-top: 2px; }
|
||||
.wp-block-tainacan-collections-modal .modal-collections-footer {
|
||||
border-top: 1px solid #e2e4e7;
|
||||
display: flex;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -280,6 +280,7 @@
|
|||
p {
|
||||
color: #555758;
|
||||
margin-right: 12px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
.modal-collections-footer {
|
||||
|
|
|
@ -339,13 +339,13 @@ registerBlockType('tainacan/items-list', {
|
|||
return (
|
||||
<Modal
|
||||
className="wp-block-tainacan-items-modal"
|
||||
title={__('Select the desired items for collection ' + collectionName, 'tainacan')}
|
||||
title={__('Select the desired items from collection ' + collectionName, 'tainacan')}
|
||||
onRequestClose={ () => setAttributes( { isModalOpen: false } ) }
|
||||
contentLabel={__('Select items', 'tainacan')}>
|
||||
<div>
|
||||
<div className="modal-items-search-area">
|
||||
<TextControl
|
||||
label={__('Search for a item', 'tainacan')}
|
||||
label={__('Search for an item', 'tainacan')}
|
||||
value={ searchItemName }
|
||||
onInput={(value) => {
|
||||
setAttributes({
|
||||
|
|
|
@ -281,6 +281,7 @@
|
|||
p {
|
||||
color: #555758;
|
||||
margin-right: 12px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
.modal-items-footer {
|
||||
|
|
|
@ -312,7 +312,7 @@ registerBlockType('tainacan/terms-list', {
|
|||
return (
|
||||
<Modal
|
||||
className="wp-block-tainacan-terms-modal"
|
||||
title={__('Select the desired terms for taxonomy ' + taxonomyName, 'tainacan')}
|
||||
title={__('Select the desired terms from taxonomy ' + taxonomyName, 'tainacan')}
|
||||
onRequestClose={ () => setAttributes( { isModalOpen: false } ) }
|
||||
contentLabel={__('Select terms', 'tainacan')}>
|
||||
|
||||
|
|
|
@ -262,6 +262,7 @@
|
|||
p {
|
||||
color: #555758;
|
||||
margin-right: 12px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
}
|
||||
.modal-terms-footer {
|
||||
|
|
Loading…
Reference in New Issue