don't show thread/reply labels in thread display
This commit is contained in:
parent
8d4111aea6
commit
1cb656c40c
|
@ -25,6 +25,8 @@ export class StatusComponent implements OnInit {
|
|||
@Output() browseThreadEvent = new EventEmitter<OpenThreadEvent>();
|
||||
@ViewChild('appActionBar') appActionBar: ActionBarComponent;
|
||||
|
||||
@Input() isThreadDisplay: boolean;
|
||||
|
||||
private _statusWrapper: StatusWrapper;
|
||||
status: Status;
|
||||
@Input('statusWrapper')
|
||||
|
@ -90,6 +92,8 @@ export class StatusComponent implements OnInit {
|
|||
}
|
||||
}
|
||||
|
||||
if(this.isThreadDisplay) return;
|
||||
|
||||
if (status.in_reply_to_account_id && status.in_reply_to_account_id === status.account.id) {
|
||||
this.isThread = true;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
|
||||
<!-- data-simplebar -->
|
||||
<div class="stream-toots__status" *ngFor="let statusWrapper of statuses">
|
||||
<app-status [statusWrapper]="statusWrapper"
|
||||
<app-status
|
||||
[statusWrapper]="statusWrapper"
|
||||
[isThreadDisplay]="isThread"
|
||||
(browseAccountEvent)="browseAccount($event)"
|
||||
(browseHashtagEvent)="browseHashtag($event)"
|
||||
(browseThreadEvent)="browseThread($event)"></app-status>
|
||||
|
|
|
@ -19,6 +19,7 @@ import { StatusWrapper } from '../../../models/common.model';
|
|||
})
|
||||
export class StreamStatusesComponent implements OnInit, OnDestroy {
|
||||
isLoading = true;
|
||||
isThread = false;
|
||||
displayError: string;
|
||||
|
||||
private _streamElement: StreamElement;
|
||||
|
|
|
@ -17,6 +17,7 @@ export class ThreadComponent implements OnInit {
|
|||
statuses: StatusWrapper[] = [];
|
||||
displayError: string;
|
||||
isLoading = true;
|
||||
isThread = true;
|
||||
|
||||
private lastThreadEvent: OpenThreadEvent;
|
||||
|
||||
|
|
Loading…
Reference in New Issue