master
Boris Voropaev 2023-11-23 17:18:32 +03:00
parent 109772f967
commit 3994366c13
2 changed files with 5 additions and 4 deletions

View File

@ -132,10 +132,11 @@ export class SliderFormComponent {
window.open(res.asset.data.links[res.action || 'download'], "_blank");
} else {
this.listsService.refresh(this.list);
this.pagesService.root({include:'children'}).subscribe(
res => { this.pagesService.rootPages = res }
if(this.type=='page') this.pagesService.root({include:'children'}).subscribe(
res => { this.pagesService.rootPages = res },
err => {console.log(err)},
()=>console.log('COMPLETE')
)
if(this.type=='page')this.menuService.setPagesTree();
this.close();
}
}, error => {

View File

@ -2,7 +2,7 @@
<div class="poster" *ngIf="currentImage">
<img [src]="currentImage.links?.full" />
</div>
<div class="posters" *ngIf="images.length>0">
<div class="posters" *ngIf="images.length>1">
<div class="item" *ngFor="let image of images">
<img [src]="image.links?.thumb" (click)="currentImage=image"/>
</div>