name in jumbotron
parent
6478d6813c
commit
add3afe064
|
|
@ -51,15 +51,16 @@ export class LeftContentComponent {
|
|||
fetch(){
|
||||
let include = [
|
||||
'permissions',
|
||||
'parents'
|
||||
];
|
||||
this.pagesService.find(this.url, {include: include.join(',')}).subscribe(
|
||||
resp => {
|
||||
let page = resp?.data;
|
||||
if (page){
|
||||
console.log(page);
|
||||
console.log(page.parents.data);
|
||||
this.background = page.image?.data?.links?.full;
|
||||
if (this.background) this.background = `url(${this.background})`;
|
||||
this.pageName = page.name;
|
||||
this.pageName = (page.parents.data[2]||page).name;
|
||||
this.editable = page.permissions.edit || page.permissions.anything;
|
||||
this.pageID = page.id
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Reference in New Issue