Skip to content

Commit

Permalink
fix: remove change event which doesnt work anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Oct 3, 2024
1 parent cd7caa9 commit bd66aed
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/components/BatchSearchResultsDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>
<div v-if="isServer && isMyBatchSearch" class="batch-search-results-details__info__published">
<dt>{{ $t('batchSearch.published') }}</dt>
<dd><b-form-checkbox :checked="batchSearch.published" switch @change="changePublished" /></dd>
<dd><b-form-checkbox v-model="published" switch /></dd>
</div>
<div>
<dt>{{ $t('batchSearch.state') }}</dt>
Expand Down Expand Up @@ -130,6 +130,14 @@ export default {
}
},
computed: {
published: {
get() {
return this.batchSearch.published
},
set(published) {
this.$emit('update:published', published)
}
},
showProjects() {
return this.isServer || this.$core.projects.length > 1
},
Expand Down Expand Up @@ -181,9 +189,6 @@ export default {
const size = humanSize(value)
return size === 'unknown' ? '-' : size
},
changePublished(published) {
this.$emit('update:published', published)
},
localeLongDate(date) {
return humanLongDate(date, this.$i18n.locale)
}
Expand Down

0 comments on commit bd66aed

Please sign in to comment.