Replace .sync modifiers with new v-model attributes #794.
This commit is contained in:
parent
b3e834e73c
commit
108a240f93
|
@ -23,6 +23,7 @@ module.exports = {
|
|||
'vue/multiline-html-element-content-newline': 'off',
|
||||
'vue/prop-name-casing': 'off',
|
||||
"vue/no-v-for-template-key": 'off', // In Vue3, this rule is deprecated
|
||||
"vue/no-v-model-argument": "off", // ADD
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/require-default-prop': 'off',
|
||||
'vue/no-v-text-v-html-on-component': 'off'
|
||||
|
|
|
@ -683,7 +683,7 @@
|
|||
</div>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{ path: '', label: exporterType != undefined ? (exporterName != undefined ? exporterName : exporterType) : $i18n.get('title_exporter_page') }
|
||||
]"/>
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
<form
|
||||
@click="formErrorMessage = ''"
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
</form>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</div>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<form
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingSourceInfo"
|
||||
v-model:active="isLoadingSourceInfo"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<!-- Metadata Mapping -->
|
||||
|
@ -200,7 +200,7 @@
|
|||
|
||||
<b-modal
|
||||
@close="onMetadatumEditionCanceled()"
|
||||
:active.sync="isNewMetadatumModalActive"
|
||||
v-model:active="isNewMetadatumModalActive"
|
||||
trap-focus
|
||||
aria-modal
|
||||
aria-role="dialog"
|
||||
|
@ -214,7 +214,7 @@
|
|||
v-if="selectedMetadatumType == undefined && !isEditingMetadatum">
|
||||
<b-loading
|
||||
:is-full-page="isFullPage"
|
||||
:active.sync="isLoadingMetadatumTypes"/>
|
||||
v-model:active="isLoadingMetadatumTypes"/>
|
||||
<div
|
||||
|
||||
class="tainacan-modal-content">
|
||||
|
@ -287,7 +287,7 @@
|
|||
<!-- Prompt to show title -->
|
||||
<b-modal
|
||||
v-if="importerSourceInfo"
|
||||
:active.sync="showTitlePromptModal"
|
||||
v-model:active="showTitlePromptModal"
|
||||
:can-cancel="false"
|
||||
:width="820"
|
||||
scroll="keep"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
<div
|
||||
v-if="!$adminOptions.hideBulkEditionPageTitle"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div :class="isCreatingNewItem ? 'item-creation-container' : 'item-edition-container'"><!-- Do NOT remove this classes, they may be used by third party plugins -->
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<tainacan-title
|
||||
|
@ -482,7 +482,7 @@
|
|||
:collection-id="collectionId"
|
||||
:related-items="item.related_items"
|
||||
:is-editable="!$adminOptions.itemEditionMode"
|
||||
:is-loading.sync="isLoading" />
|
||||
v-model:is-loading="isLoading" />
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -258,7 +258,7 @@
|
|||
</div>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoadingTaxonomy"
|
||||
v-model:active="isLoadingTaxonomy"
|
||||
:can-cancel="false"/>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div class="modal-card-body">
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading" />
|
||||
v-model:active="isLoading" />
|
||||
|
||||
<!-- Name -------------- -->
|
||||
<b-field
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<b-collapse
|
||||
v-if="displayFilter"
|
||||
class="show"
|
||||
:open.sync="singleCollapseOpen"
|
||||
v-model:open="singleCollapseOpen"
|
||||
animation="filter-item">
|
||||
<button
|
||||
:for="'filter-input-id-' + filter.id"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
class="table-container">
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading" />
|
||||
v-model:active="isLoading" />
|
||||
<div
|
||||
v-if="attachments.length > 0"
|
||||
class="table-wrapper">
|
||||
|
@ -74,7 +74,7 @@
|
|||
<b-pagination
|
||||
@change="onPageChange"
|
||||
:total="totalAttachments"
|
||||
:current.sync="attachmentsPage"
|
||||
v-model:current="attachmentsPage"
|
||||
order="is-centered"
|
||||
size="is-small"
|
||||
:per-page="attachmentsPerPage"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="column">
|
||||
|
||||
<b-loading :active.sync="isLoadingMetadataSections"/>
|
||||
<b-loading v-model:active="isLoadingMetadataSections"/>
|
||||
|
||||
<div class="tainacan-form sub-header">
|
||||
<template v-if="activeMetadataSectionsList">
|
||||
|
@ -245,7 +245,7 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<b-loading :active.sync="isUpdatingMetadatum"/>
|
||||
<b-loading v-model:active="isUpdatingMetadatum"/>
|
||||
|
||||
<!-- The Metadata list, inside each metadata section -->
|
||||
<template v-if="metadataSection.metadata_object_list && Array.isArray(metadataSection.metadata_object_list)">
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<b-loading
|
||||
:can-cancel="false"
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingMetadatumMappers"/>
|
||||
v-model:active="isLoadingMetadatumMappers"/>
|
||||
<b-loading
|
||||
:can-cancel="false"
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingMetadata"/>
|
||||
v-model:active="isLoadingMetadata"/>
|
||||
|
||||
<b-field>
|
||||
<p style="line-height: 2em;">{{ $i18n.get('info_metadata_mapper_helper') }}</p>
|
||||
|
@ -154,7 +154,7 @@
|
|||
|
||||
<b-modal
|
||||
@close="onCancelNewMetadataMapperMetadata"
|
||||
:active.sync="isMapperMetadataCreating"
|
||||
v-model:active="isMapperMetadataCreating"
|
||||
trap-focus
|
||||
aria-modal
|
||||
aria-role="dialog"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
v-if="(isRepositoryLevel && $userCaps.hasCapability('tnc_rep_edit_metadata')) || !isRepositoryLevel"
|
||||
class="column available-metadata-types-area" >
|
||||
|
||||
<b-loading :active.sync="isLoadingMetadataTypes"/>
|
||||
<b-loading v-model:active="isLoadingMetadataTypes"/>
|
||||
|
||||
<div class="field">
|
||||
<h3 class="label">{{ $i18n.get('label_available_metadata_types') }}</h3>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="table-container">
|
||||
<b-loading
|
||||
is-full-page="false"
|
||||
:active.sync="displayLoading" />
|
||||
v-model:active="displayLoading" />
|
||||
<div class="table-wrapper">
|
||||
<div class="related-items-list">
|
||||
<div
|
||||
|
@ -137,7 +137,7 @@
|
|||
</div>
|
||||
<b-modal
|
||||
:width="1200"
|
||||
:active.sync="editItemModal"
|
||||
v-model:active="editItemModal"
|
||||
@after-leave="reloadRelatedItems"
|
||||
custom-class="tainacan-modal"
|
||||
:close-button-aria-label="$i18n.get('close')">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="column">
|
||||
|
||||
<b-loading :active.sync="isLoadingMetadata"/>
|
||||
<b-loading v-model:active="isLoadingMetadata"/>
|
||||
|
||||
<div class="tainacan-form sub-header">
|
||||
<!-- <h3>{{ $i18n.get('metadata') }}<span class="has-text-gray">{{ ( activeMetadatumList && activeMetadatumList.length ? (' (' + activeMetadatumList.length + ')') : '' ) }}</span></h3> -->
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isColumnLoading"/>
|
||||
v-model:active="isColumnLoading"/>
|
||||
|
||||
<transition name="appear-from-top">
|
||||
<button
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
</a>
|
||||
<b-modal
|
||||
:width="1200"
|
||||
:active.sync="editItemModalOpen"
|
||||
v-model:active="editItemModalOpen"
|
||||
:custom-class="'tainacan-modal' + (collection && collection.id ? ' tainacan-modal-item-edition--collection-' + collection.id : '')"
|
||||
:close-button-aria-label="$i18n.get('close')">
|
||||
<iframe
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</header>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingActivity"
|
||||
v-model:active="isLoadingActivity"
|
||||
:can-cancel="false"/>
|
||||
<div
|
||||
v-if="!isLoadingActivity"
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</footer>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
</section>
|
||||
</div>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
<div v-else>
|
||||
<b-loading
|
||||
is-full-page="false"
|
||||
:active.sync="isLoading" />
|
||||
v-model:active="isLoading" />
|
||||
</div>
|
||||
<div class="field is-grouped form-submit">
|
||||
<div class="control">
|
||||
|
|
|
@ -90,12 +90,12 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingMetadatumMappers"
|
||||
v-model:active="isLoadingMetadatumMappers"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isCreatingCollectionPreset"
|
||||
v-model:active="isCreatingCollectionPreset"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<footer class="field is-grouped form-submit">
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</div>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<footer class="field is-grouped form-submit">
|
||||
|
|
|
@ -228,7 +228,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<footer class="field is-grouped form-submit">
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
</template>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingSearch"/>
|
||||
v-model:active="isLoadingSearch"/>
|
||||
</ul>
|
||||
<a
|
||||
v-if="!noMoreSearchPage"
|
||||
|
@ -151,7 +151,7 @@
|
|||
</template>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isCheckboxListLoading"/>
|
||||
v-model:active="isCheckboxListLoading"/>
|
||||
</ul>
|
||||
<a
|
||||
v-if="!noMorePage"
|
||||
|
@ -250,7 +250,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isColumnLoading"/>
|
||||
v-model:active="isColumnLoading"/>
|
||||
|
||||
</b-tab-item>
|
||||
|
||||
|
@ -290,7 +290,7 @@
|
|||
</section>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isSelectedTermsLoading"/>
|
||||
v-model:active="isSelectedTermsLoading"/>
|
||||
</div>
|
||||
</b-tab-item>
|
||||
</b-tabs>
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
</template>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingSearch"/>
|
||||
v-model:active="isLoadingSearch"/>
|
||||
</ul>
|
||||
<a
|
||||
v-if="!noMoreSearchPage"
|
||||
|
@ -153,7 +153,7 @@
|
|||
</li>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isCheckboxListLoading"/>
|
||||
v-model:active="isCheckboxListLoading"/>
|
||||
</ul>
|
||||
<a
|
||||
v-if="!noMorePage"
|
||||
|
@ -258,7 +258,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isColumnLoading"/>
|
||||
v-model:active="isColumnLoading"/>
|
||||
|
||||
</b-tab-item>
|
||||
|
||||
|
@ -301,7 +301,7 @@
|
|||
</section>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isSelectedTermsLoading"/>
|
||||
v-model:active="isSelectedTermsLoading"/>
|
||||
</div>
|
||||
</b-tab-item>
|
||||
</b-tabs>
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingMetadata" />
|
||||
v-model:active="isLoadingMetadata" />
|
||||
|
||||
<section
|
||||
v-if="!isLoadingMetadata && metadataAsArray && metadataAsArray.length <= 0"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingFilters"/>
|
||||
v-model:active="isLoadingFilters"/>
|
||||
|
||||
<h3
|
||||
id="filters-label-landmark"
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
aria-controls="items-list-results"
|
||||
@change="onPageChange"
|
||||
:total="totalItems"
|
||||
:current.sync="page"
|
||||
v-model:current="page"
|
||||
order="is-centered"
|
||||
size="is-small"
|
||||
:per-page="itemsPerPage"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="home-page page-container">
|
||||
<b-loading :active.sync="isLoadingCollections"/>
|
||||
<b-loading v-model:active="isLoadingCollections"/>
|
||||
<section
|
||||
v-if="!$adminOptions.hideHomeRepositorySection"
|
||||
class="home-section home-section-repository">
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<div
|
||||
|
@ -279,7 +279,7 @@
|
|||
<b-pagination
|
||||
@change="onPageChange"
|
||||
:total="totalActivities"
|
||||
:current.sync="activitiesPage"
|
||||
v-model:current="activitiesPage"
|
||||
order="is-centered"
|
||||
size="is-small"
|
||||
:per-page="activitiesPerPage"
|
||||
|
@ -320,7 +320,7 @@
|
|||
<b-pagination
|
||||
@change="onPageChange"
|
||||
:total="totalProcesses"
|
||||
:current.sync="processesPage"
|
||||
v-model:current="processesPage"
|
||||
order="is-centered"
|
||||
size="is-small"
|
||||
:per-page="processesPerPage"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<div>
|
||||
<b-loading
|
||||
:is-full-page="true"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<capabilities-list
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="repository-level-page page-container">
|
||||
<b-loading :active.sync="isLoading"/>
|
||||
<b-loading v-model:active="isLoading"/>
|
||||
<tainacan-title
|
||||
:bread-crumb-items="[{ path: '', label: $i18n.get('collections') }]"/>
|
||||
<div class="sub-header">
|
||||
|
@ -342,7 +342,7 @@
|
|||
<b-pagination
|
||||
@change="onPageChange"
|
||||
:total="totalCollections"
|
||||
:current.sync="page"
|
||||
v-model:current="page"
|
||||
order="is-centered"
|
||||
size="is-small"
|
||||
:per-page="collectionsPerPage"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</template>
|
||||
|
||||
<div class="filters-list-page">
|
||||
<b-loading :active.sync="isLoadingMetadatumTypes"/>
|
||||
<b-loading v-model:active="isLoadingMetadatumTypes"/>
|
||||
|
||||
<div
|
||||
v-if="(isRepositoryLevel && $userCaps.hasCapability('tnc_rep_edit_filters') || (!isRepositoryLevel && collection && collection.current_user_can_edit_filters))"
|
||||
|
@ -365,7 +365,7 @@
|
|||
<b-modal
|
||||
ref="filterTypeModal"
|
||||
:width="680"
|
||||
:active.sync="isSelectingFilterType"
|
||||
v-model:active="isSelectingFilterType"
|
||||
trap-focus
|
||||
aria-modal
|
||||
aria-role="dialog"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</h3>
|
||||
<!-- <b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoadingMetadata"/> -->
|
||||
v-model:active="isLoadingMetadata"/> -->
|
||||
<!-- Button for hiding filters -->
|
||||
<button
|
||||
aria-controls="filters-modal"
|
||||
|
@ -513,7 +513,7 @@
|
|||
role="region"
|
||||
id="filters-modal"
|
||||
ref="filters-modal"
|
||||
:active.sync="isFiltersModalActive"
|
||||
v-model:active="isFiltersModalActive"
|
||||
:width="736"
|
||||
animation="slide-menu"
|
||||
trap-focus
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
<div class="above-subheader">
|
||||
<b-loading
|
||||
:is-full-page="true"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
|
@ -229,7 +229,7 @@
|
|||
<b-pagination
|
||||
@change="onPageChange"
|
||||
:total="total"
|
||||
:current.sync="page"
|
||||
v-model:current="page"
|
||||
order="is-centered"
|
||||
size="is-small"
|
||||
:per-page="taxonomiesPerPage"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<b-loading
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<tainacan-title
|
||||
|
@ -161,7 +161,7 @@
|
|||
:collection-id="collectionId"
|
||||
:related-items="item.related_items"
|
||||
:is-editable="false"
|
||||
:is-loading.sync="isLoading" />
|
||||
v-model:is-loading="isLoading" />
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
|
|
@ -414,7 +414,7 @@
|
|||
role="region"
|
||||
id="filters-modal"
|
||||
ref="filters-modal"
|
||||
:active.sync="isFiltersModalActive"
|
||||
v-model:active="isFiltersModalActive"
|
||||
:width="736"
|
||||
:auto-focus="filtersAsModal"
|
||||
:trap-focus="filtersAsModal"
|
||||
|
@ -547,7 +547,7 @@
|
|||
<b-loading
|
||||
v-if="!(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].skeleton_template != undefined)"
|
||||
:is-full-page="false"
|
||||
:active.sync="showLoading"/>
|
||||
v-model:active="showLoading"/>
|
||||
|
||||
<!-- Custom skeleton templates used by some view modes -->
|
||||
<div
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div>
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading" />
|
||||
v-model:active="isLoading" />
|
||||
|
||||
<!-- Name -------------- -->
|
||||
<b-field
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div v-if="collectionId">
|
||||
<b-loading
|
||||
:is-full-page="false"
|
||||
:active.sync="isLoading"
|
||||
v-model:active="isLoading"
|
||||
:can-cancel="false"/>
|
||||
|
||||
<template v-if="couldLoadCollection && collecionAllowsItemSubmission">
|
||||
|
|
Loading…
Reference in New Issue