mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +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>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import UserTable from '../components/UserTable.vue'
|
import UserTable from '../components/UserTable.vue'
|
||||||
|
import { getPendingCreations } from '../graphql/getPendingCreations'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CreationConfirm',
|
name: 'CreationConfirm',
|
||||||
@ -140,6 +141,16 @@ export default {
|
|||||||
this.$store.commit('openCreationsMinus', 1)
|
this.$store.commit('openCreationsMinus', 1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getPendingCreations() {
|
||||||
|
this.$apollo
|
||||||
|
.query({
|
||||||
|
query: getPendingCreations,
|
||||||
|
})
|
||||||
|
.then((result) => {
|
||||||
|
console.log('getPendingCreations.Result', result)
|
||||||
|
})
|
||||||
|
.catch()
|
||||||
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$store.commit('resetOpenCreations')
|
this.$store.commit('resetOpenCreations')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user