| 1 |
<template> |
| 2 |
<required-culprits v-if="activeCase.outcome === 'required_plugins_broken'"></required-culprits> |
| 3 |
<broken-loop v-else-if="activeCase.outcome === 'broken_loop'"></broken-loop> |
| 4 |
<culprits-found v-else-if="activeCase.culprits.length"></culprits-found> |
| 5 |
<no-culprit-found v-else></no-culprit-found> |
| 6 |
</template> |
| 7 |
|
| 8 |
<script> |
| 9 |
import store from '@/store' |
| 10 |
import { mapState } from 'vuex' |
| 11 |
import NoCulpritFound from './results/NoCulpritFound' |
| 12 |
import CulpritsFound from './results/CulpritsFound' |
| 13 |
import RequiredCulprits from './results/RequiredCulprits' |
| 14 |
import BrokenLoop from './results/BrokenLoop' |
| 15 |
|
| 16 |
export default { |
| 17 |
name: 'complete', |
| 18 |
components: { NoCulpritFound, CulpritsFound, RequiredCulprits, BrokenLoop }, |
| 19 |
store, |
| 20 |
data () { |
| 21 |
return {} |
| 22 |
}, |
| 23 |
computed: { |
| 24 |
...mapState([ |
| 25 |
'activeCase' |
| 26 |
]) |
| 27 |
} |
| 28 |
} |
| 29 |
</script> |