Commit 68383004 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): send entity

1 merge request!459WIP: (feat): Minds Pro
Pipeline #74815897 running with stages
......@@ -6,7 +6,7 @@ import { Component, Input, OnInit } from '@angular/core';
})
export class ProContentModalComponent implements OnInit {
entity: string; // feed type
entity: any;
@Input('entity') set data(data) {
this.entity = data;
......
......@@ -29,7 +29,7 @@
<ng-container *ngIf="type === 'images' || type === 'videos' || type === 'blogs'">
<m-pro--channel-tile
[entity]="entity"
(click)="openModal()"
(click)="openModal(entity)"
></m-pro--channel-tile>
</ng-container>
<ng-container *ngIf="type === 'groups'">
......@@ -42,7 +42,7 @@
<ng-container *ngIf="type === 'activities'">
<minds-activity
[object]="entity"
(click)="openModal()"
(click)="openModal(entity)"
></minds-activity>
</ng-container>
<li
......
......@@ -165,8 +165,8 @@ export class ProChannelListComponent implements OnInit, OnDestroy {
return routeType;
}
openModal() {
this.modalService.create(ProContentModalComponent, {type: this.type}, {
openModal(entity: any) {
this.modalService.create(ProContentModalComponent, entity, {
class: 'm-overlayModal--media'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment