SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/observation_matrices/dashboard/components/filters/otus.vue

Summary

Maintainability
Test Coverage
<template>
  <div>
    <h3>Otu</h3>
    <label>
      <input
        type="checkbox"
        v-model="validity">
      Linked to valid only
    </label>
  </div>
</template>

<script>

export default {
  props: {
    modelValue: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    validity: {
      get () {
        return this.modelValue
      },
      set (value) {
        this.$emit('update:modelValue', value)
      }
    }
  }
}
</script>