Remove commented code and change the name of the hide filters method [SCI-7585]

This commit is contained in:
sboursen-scinote 2023-01-26 08:47:55 +01:00
parent adcb0e84f8
commit 15da0f2f33
4 changed files with 3 additions and 4 deletions

View file

@ -132,7 +132,7 @@ window.initRepositoryFilter = () => {
updateCurrentFilterName(name) {
this.filterName = name;
},
hideModal() {
hideDropdown() {
$('#filtersDropdownButton').removeClass('open');
}
}

View file

@ -19,7 +19,7 @@
/>
</div>
</div>
<button type="button" class="close" @click="$emit('hide-modal')" aria-label="<%= t('general.close') %>">
<button type="button" class="close" @click="$emit('hide-dropdown')" aria-label="<%= t('general.close') %>">
<span aria-hidden="true">&times;</span>
</button>
</div>

View file

@ -12,7 +12,6 @@
</template>
<script>
// @filter:delete="filters.splice(index, 1)"
import FilterElement from 'vue/repository_filter/filter.vue'
export default {

View file

@ -33,7 +33,7 @@
@filters:apply="applyFilters"
@filters:clear="clearFilters"
@filters:update="updateFilters"
@hide-modal="hideModal"
@hide-dropdown="hideDropdown"
/>
</div>
</div>