added middle click support on searched accounts

This commit is contained in:
Nicolas Constant 2020-12-17 19:35:26 -05:00
parent 5f4e822b64
commit 8566966463
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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;
}
}