SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/images/new_image/components/publishedSection.vue

Summary

Maintainability
Test Coverage
<template>
  <div class="panel content">
    <h2>Published in</h2>
    <smart-selector
      :options="options"
      v-model="view"
    />
    <role-picker v-model="roles_attributes" />
  </div>
</template>

<script>
import SmartSelector from '@/components/ui/VSwitch'
import RolePicker from '@/components/role_picker'

export default {
  components: {
    SmartSelector,
    RolePicker
  },

  props: {
    title: {
      type: String,
      required: true
    }
  },

  data() {
    return {
      options: [],
      view: undefined,
      roles_attributes: []
    }
  }
}
</script>