Call Apollo query to get the pendingCreations.

This commit is contained in:
Hannes Heine 2021-11-26 10:59:32 +01:00 committed by ogerly
parent b639da68e7
commit 9e45a21687
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import gql from 'graphql-tag'
export const getPendingCreations = gql`
query {
getPendingCreations
}
`

View File

@ -15,6 +15,7 @@
</template>
<script>
import UserTable from '../components/UserTable.vue'
import { getPendingCreations } from '../graphql/getPendingCreations'
export default {
name: 'CreationConfirm',
@ -140,6 +141,16 @@ export default {
this.$store.commit('openCreationsMinus', 1)
}
},
getPendingCreations() {
this.$apollo
.query({
query: getPendingCreations,
})
.then((result) => {
console.log('getPendingCreations.Result', result)
})
.catch()
},
},
created() {
this.$store.commit('resetOpenCreations')