2020-11-26 22:45:46 +01:00
|
|
|
<template lang="html">
|
|
|
|
<div
|
|
|
|
:id="id"
|
|
|
|
:class="{opened: isopened}"
|
|
|
|
>
|
|
|
|
<FlagCollection v-if='openedCollid' :collection='flagcolls[openedCollid]'/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { mapState, mapActions } from 'vuex'
|
|
|
|
|
2021-09-16 21:40:18 +02:00
|
|
|
import MA from 'vuejs/api/ma-axios'
|
2020-11-26 22:45:46 +01:00
|
|
|
import router from 'vuejs/route'
|
|
|
|
|
|
|
|
import FlagCollection from 'vuejs/components/User/FlagCollection'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
router,
|
|
|
|
props:['id'],
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
// isOpened: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapState({
|
|
|
|
flagcolls: state => state.User.flagcolls,
|
|
|
|
openedCollid: state => state.User.openedCollid
|
|
|
|
}),
|
|
|
|
isopened () {
|
|
|
|
return this.openedCollid
|
|
|
|
}
|
|
|
|
},
|
|
|
|
beforeMount() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
FlagCollection
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|