better migrated account opening
This commit is contained in:
parent
e77858e021
commit
985513335e
|
@ -41,7 +41,7 @@
|
|||
|
||||
<div class="profile__moved" *ngIf="displayedAccount && displayedAccount.moved">
|
||||
{{displayedAccount | accountEmoji }} has moved to <a href
|
||||
(click)="browseAccount(displayedAccount.moved.acct)" class="profile__moved--link"
|
||||
(click)="openMigratedAccount(displayedAccount.moved)" class="profile__moved--link"
|
||||
title="open @{{displayedAccount.moved.acct }}">@{{displayedAccount.moved.acct }}</a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -210,8 +210,13 @@ export class UserProfileComponent implements OnInit {
|
|||
this.load(this.lastAccountName);
|
||||
}
|
||||
|
||||
browseAccount(accountName: string): boolean {
|
||||
browseAccount(accountName: string): void {
|
||||
this.browseAccountEvent.next(accountName);
|
||||
}
|
||||
|
||||
openMigratedAccount(account: Account): boolean {
|
||||
const handle = this.toolsService.getAccountFullHandle(account);
|
||||
this.browseAccount(handle);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue