mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
In CreationConfirm.vue number of all open creations and transferred to the store
This commit is contained in:
parent
a618ac678e
commit
2f6a1a0630
@ -75,6 +75,8 @@ export default {
|
|||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.confirmResult = result.data.getPendingCreations
|
this.confirmResult = result.data.getPendingCreations
|
||||||
|
this.$store.commit('resetOpenCreations')
|
||||||
|
this.$store.commit('openCreationsPlus', Object.keys(this.confirmResult).length)
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.$toasted.error(error.message)
|
this.$toasted.error(error.message)
|
||||||
@ -83,7 +85,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
await this.getPendingCreations()
|
await this.getPendingCreations()
|
||||||
this.$store.commit('openCreationsPlus', Object.keys(this.confirmResult).length)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -76,21 +76,27 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { countPendingCreations } from '../graphql/getCountPendingCreations'
|
// import { getPendingCreations } from '../graphql/getPendingCreations'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'overview',
|
name: 'overview',
|
||||||
methods: {
|
methods: {
|
||||||
getCountPendingCreation() {
|
/*
|
||||||
|
async getPendingCreations() {
|
||||||
this.$apollo
|
this.$apollo
|
||||||
.query({
|
.query({
|
||||||
query: countPendingCreations,
|
query: getPendingCreations,
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.$store.commit('setOpenCreations', result.data.countPendingCreations)
|
this.confirmResult = result.data.getPendingCreations
|
||||||
|
this.$store.commit('resetOpenCreations')
|
||||||
|
this.$store.commit('openCreationsPlus', Object.keys(this.confirmResult).length)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
this.$toasted.error(error.message)
|
||||||
})
|
})
|
||||||
.catch()
|
|
||||||
},
|
},
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getCountPendingCreation()
|
this.getCountPendingCreation()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user