added middle click support on searched accounts
This commit is contained in:
parent
5f4e822b64
commit
8566966463
|
@ -1,4 +1,4 @@
|
|||
<a href class="account" title="open account" (click)="selected()">
|
||||
<a href class="account" title="open account" (click)="selected()" (auxclick)="openAccount()">
|
||||
<img src="{{account.avatar}}" class="account__avatar" />
|
||||
<div class="account__name" innerHTML="{{ account | accountEmoji }}"></div>
|
||||
<div class="account__fullhandle">@{{ account.acct }}</div>
|
||||
|
|
|
@ -21,4 +21,9 @@ export class AccountComponent implements OnInit {
|
|||
this.accountSelected.next(this.account);
|
||||
return false;
|
||||
}
|
||||
|
||||
openAccount(): boolean {
|
||||
window.open(this.account.url, '_blank');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue