feat: only show unlocked instruments and apprentices
This commit is contained in:
parent
9333b0d48f
commit
e65587bbb7
|
@ -1,9 +1,19 @@
|
|||
<template>
|
||||
<responsive-grid>
|
||||
<apprentice-button
|
||||
v-for="(process, index) in $store.state.processes"
|
||||
v-for="(process, index) in unlocked"
|
||||
:key="`${index}-${process.workerLevel}`"
|
||||
:process="process"
|
||||
/>
|
||||
</responsive-grid>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
unlocked() {
|
||||
return this.$store.state.processes.filter((p) => p.unlocked)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -24,11 +24,14 @@
|
|||
<script>
|
||||
export default {
|
||||
computed: {
|
||||
unlocked() {
|
||||
return this.$store.state.processes.filter((p) => p.unlocked)
|
||||
},
|
||||
created() {
|
||||
return this.$store.state.processes.filter((p) => p.created)
|
||||
return this.unlocked.filter((p) => p.created)
|
||||
},
|
||||
uncreated() {
|
||||
return this.$store.state.processes.filter((p) => !p.created)
|
||||
return this.unlocked.filter((p) => !p.created)
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
Reference in New Issue