IssuesModal.vue 821 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <modal title='Report Issues'>
  3. <div slot='body'>
  4. <table class='table is-narrow'>
  5. <thead>
  6. <tr>
  7. <td>Issue</td>
  8. <td>Reasons</td>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <tr v-for='(index, issue) in $parent.editing.issues' track-by='$index'>
  13. <td>
  14. <span>{{ issue.name }}</span>
  15. </td>
  16. <td>
  17. <span>{{ issue.reasons }}</span>
  18. </td>
  19. </tr>
  20. </tbody>
  21. </table>
  22. </div>
  23. <div slot='footer'>
  24. <a class='button is-primary' @click='$parent.resolve($parent.editing._id)' href='#'>
  25. <span>Resolve</span>
  26. </a>
  27. <a class='button is-danger' @click='$parent.toggleModal()' href='#'>
  28. <span>Cancel</span>
  29. </a>
  30. </div>
  31. </modal>
  32. </template>
  33. <script>
  34. import Modal from './Modal.vue';
  35. export default {
  36. components: { Modal }
  37. }
  38. </script>