Skip to content
Commits on Source (1)
......@@ -81,7 +81,7 @@ export class Activity implements OnInit {
editing: boolean = false;
@Input() hideTabs: boolean;
deleted: boolean = false;
_delete: EventEmitter<any> = new EventEmitter();
commentsOpened: EventEmitter<any> = new EventEmitter();
@Input() focusedCommentGuid: string;
......@@ -263,6 +263,7 @@ export class Activity implements OnInit {
$event.completed.emit(0);
}
this._delete.next(this.activity);
this.deleted = true;
})
.catch(e => {
if ($event.inProgress) {
......@@ -538,9 +539,13 @@ export class Activity implements OnInit {
this.activity.modal_source_url = this.router.url;
this.overlayModal
.create(MediaModalComponent, this.activity, {
class: 'm-overlayModal--media',
})
.create(
MediaModalComponent,
{ entity: this.activity },
{
class: 'm-overlayModal--media',
}
)
.present();
}
......