|
@@ -1,41 +1,40 @@
|
|
<template>
|
|
<template>
|
|
- <div class='modal is-active'>
|
|
|
|
- <div class='modal-background'></div>
|
|
|
|
- <div class='modal-card'>
|
|
|
|
- <header class='modal-card-head'>
|
|
|
|
- <p class='modal-card-title'>Report Issues</p>
|
|
|
|
- <button class='delete' @click='$parent.toggleModal()'></button>
|
|
|
|
- </header>
|
|
|
|
- <section class='modal-card-body'>
|
|
|
|
|
|
+ <modal title='Report Issues'>
|
|
|
|
+ <div slot='body'>
|
|
|
|
+ <table class='table is-narrow'>
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <td>Issue</td>
|
|
|
|
+ <td>Reasons</td>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr v-for='(index, issue) in $parent.editing.issues' track-by='$index'>
|
|
|
|
+ <td>
|
|
|
|
+ <span>{{ issue.name }}</span>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <span>{{ issue.reasons }}</span>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <div slot='footer'>
|
|
|
|
+ <a class='button is-primary' @click='$parent.resolve($parent.editing._id)' href='#'>
|
|
|
|
+ <span>Resolve</span>
|
|
|
|
+ </a>
|
|
|
|
+ <a class='button is-danger' @click='$parent.toggleModal()' href='#'>
|
|
|
|
+ <span>Cancel</span>
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
|
|
+ </modal>
|
|
|
|
+</template>
|
|
|
|
|
|
- <table class='table is-narrow'>
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <td>Issue</td>
|
|
|
|
- <td>Reasons</td>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- <tr v-for='(index, issue) in $parent.editing.issues' track-by='$index'>
|
|
|
|
- <td>
|
|
|
|
- <span>{{ issue.name }}</span>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <span>{{ issue.reasons }}</span>
|
|
|
|
- </td>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
|
|
+<script>
|
|
|
|
+ import Modal from './Modal.vue';
|
|
|
|
|
|
- </section>
|
|
|
|
- <footer class='modal-card-foot'>
|
|
|
|
- <a class='button is-primary' @click='$parent.resolve($parent.editing._id)' href='#'>
|
|
|
|
- <span>Resolve</span>
|
|
|
|
- </a>
|
|
|
|
- <a class='button is-danger' @click='$parent.toggleModal()' href='#'>
|
|
|
|
- <span>Cancel</span>
|
|
|
|
- </a>
|
|
|
|
- </footer>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
-</template>
|
|
|
|
|
|
+ export default {
|
|
|
|
+ components: { Modal }
|
|
|
|
+ }
|
|
|
|
+</script>
|