diff --git a/src/app/components/stream/status/status.component.html b/src/app/components/stream/status/status.component.html
index 38d2c624..53a15d8f 100644
--- a/src/app/components/stream/status/status.component.html
+++ b/src/app/components/stream/status/status.component.html
@@ -1,10 +1,10 @@
-
+
diff --git a/src/app/components/stream/status/status.component.ts b/src/app/components/stream/status/status.component.ts
index 58d8c879..454a8c89 100644
--- a/src/app/components/stream/status/status.component.ts
+++ b/src/app/components/stream/status/status.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, Input, Inject, LOCALE_ID, ElementRef } from "@angular/core";
+import { Component, OnInit, Input, Output, Inject, LOCALE_ID, ElementRef, EventEmitter } from "@angular/core";
import { Status } from "../../../services/models/mastodon.interfaces";
import { formatDate } from '@angular/common';
import { stateNameErrorMessage } from "@ngxs/store/src/decorators/state";
@@ -16,6 +16,10 @@ export class StatusComponent implements OnInit {
hasAttachments: boolean;
replyingToStatus: boolean;
+ @Output() browseAccount = new EventEmitter();
+ @Output() browseHashtag = new EventEmitter();
+ @Output() browseThread = new EventEmitter();
+
private _statusWrapper: StatusWrapper;
status: Status;
@Input('statusWrapper')
@@ -51,6 +55,11 @@ export class StatusComponent implements OnInit {
ngOnInit() {
}
+ openAccount(account: Account): boolean{
+ this.browseAccount.next(account);
+ return false;
+ }
+
getCompactRelativeTime(d: string): string {
const date = (new Date(d)).getTime();
const now = Date.now();
diff --git a/src/app/components/stream/stream.component.html b/src/app/components/stream/stream.component.html
index f12f8f6c..43177e2d 100644
--- a/src/app/components/stream/stream.component.html
+++ b/src/app/components/stream/stream.component.html
@@ -10,7 +10,7 @@
+
\ No newline at end of file
diff --git a/src/app/components/stream/stream.component.ts b/src/app/components/stream/stream.component.ts
index cd0c449f..2ce2fa4a 100644
--- a/src/app/components/stream/stream.component.ts
+++ b/src/app/components/stream/stream.component.ts
@@ -22,7 +22,7 @@ export class StreamComponent implements OnInit {
private bufferWasCleared: boolean;
overlayActive: boolean;
- overlayParams: string;
+ overlayAccountToBrowse: Account;
@Input()
set streamElement(streamElement: StreamElement) {
@@ -50,9 +50,9 @@ export class StreamComponent implements OnInit {
ngOnInit() {
}
- browseAccount(account: any): void {
- console.warn('browseAccount');
- console.warn(account);
+ browseAccount(account: Account): void {
+ this.overlayAccountToBrowse = account;
+ this.overlayActive = true;
}
browseHashtag(hashtag: any): void {