fix date link in status
This commit is contained in:
parent
4362e87806
commit
258fc00914
|
@ -36,7 +36,7 @@
|
|||
</span>
|
||||
</a>
|
||||
<div class="status__created-at" title="{{ displayedStatus.created_at | date: 'full' }}">
|
||||
<a class="status__created-at--link" href="{{ displayedStatus.url }}" target="_blank">
|
||||
<a href class="status__created-at--link" (click)="textSelected()" (auxclick)="openUrl()">
|
||||
{{ status.created_at | timeAgo | async }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -149,7 +149,7 @@ export class StatusComponent implements OnInit {
|
|||
this.browseHashtagEvent.next(hashtag);
|
||||
}
|
||||
|
||||
textSelected(): void {
|
||||
textSelected(): boolean {
|
||||
const status = this._statusWrapper.status;
|
||||
const accountInfo = this._statusWrapper.provider;
|
||||
|
||||
|
@ -161,5 +161,12 @@ export class StatusComponent implements OnInit {
|
|||
}
|
||||
|
||||
this.browseThreadEvent.next(openThread);
|
||||
return false;
|
||||
}
|
||||
|
||||
openUrl(): boolean {
|
||||
event.preventDefault();
|
||||
window.open(this.displayedStatus.url, "_blank");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue