better account handling in account management
This commit is contained in:
parent
1327860c07
commit
da7ddc7f3d
|
@ -2,8 +2,8 @@
|
||||||
<h3 class="panel__title">Manage Account</h3>
|
<h3 class="panel__title">Manage Account</h3>
|
||||||
|
|
||||||
<div class="account__header">
|
<div class="account__header">
|
||||||
<a href="{{userAccount.url}}" target="_blank" >
|
<a href (click)="browseLocalAccount()" (auxclick)="openLocalAccount()" title="open {{ account.info.id }}">
|
||||||
<img class="account__avatar" src="{{account.avatar}}" title="{{ account.info.id }} " />
|
<img class="account__avatar" src="{{account.avatar}}"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- <a href class="account__header--button"><fa-icon [icon]="faUserPlus"></fa-icon></a> -->
|
<!-- <a href class="account__header--button"><fa-icon [icon]="faUserPlus"></fa-icon></a> -->
|
||||||
|
|
|
@ -94,6 +94,17 @@ export class ManageAccountComponent implements OnInit, OnDestroy {
|
||||||
this.browseAccountEvent.next(accountName);
|
this.browseAccountEvent.next(accountName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
browseLocalAccount(): boolean {
|
||||||
|
var accountName = `@${this.account.info.username}@${this.account.info.instance}`;
|
||||||
|
this.browseAccountEvent.next(accountName);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
openLocalAccount(): boolean {
|
||||||
|
window.open(this.userAccount.url, '_blank');
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
browseHashtag(hashtag: string): void {
|
browseHashtag(hashtag: string): void {
|
||||||
this.browseHashtagEvent.next(hashtag);
|
this.browseHashtagEvent.next(hashtag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue