fixed graphql linked_materials entity_reference translation

This commit is contained in:
2021-01-19 11:42:14 +01:00
parent bc2bd2861c
commit 2cf2f378ce
12 changed files with 111 additions and 39 deletions

View File

@@ -29,7 +29,7 @@ export default {
props: ['item'],
data(){
return {
alias: this.item.view_node.replace(/^.?\/blabla\//g, '')
alias: this.item.view_node.replace(/^.*\/blabla\//g, '')
}
},
methods:{

View File

@@ -117,7 +117,7 @@ export default {
console.log('loadMaterial', this.item.id)
this.loading = true
let ast = gql`{
materiau(id: ${this.item.id}) {
materiau(id: ${this.item.id}, lang: "${drupalDecoupled.lang_code}") {
...MateriauFields
}
}

View File

@@ -213,7 +213,7 @@ export default {
this.loading = true
let ast = gql`{
route(path: "${this.path}") {
route(path: "${this.path}", lang: "${drupalDecoupled.lang_code}") {
...ArticleFields
}
}