mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Call Apollo query to get the pendingCreations.
This commit is contained in:
parent
b639da68e7
commit
9e45a21687
7
admin/src/graphql/getPendingCreations.js
Normal file
7
admin/src/graphql/getPendingCreations.js
Normal file
@ -0,0 +1,7 @@
|
||||
import gql from 'graphql-tag'
|
||||
|
||||
export const getPendingCreations = gql`
|
||||
query {
|
||||
getPendingCreations
|
||||
}
|
||||
`
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user