mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 22:40:44 +00:00
Fix the features not working on page
Signed-off-by: Harshil-Jani <harshiljani2002@gmail.com>
This commit is contained in:
parent
5d91211754
commit
44416a7491
@ -1,4 +1,4 @@
|
||||
<div class="profile-widget">
|
||||
<app-event-header [pubkey]="pubkey"></app-event-header>
|
||||
<app-profile-actions [pubkey]="pubkey"></app-profile-actions>
|
||||
<app-profile-actions [pubkey]="pubkey" [profile]="profile"></app-profile-actions>
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { ProfileService } from 'src/app/services/profile';
|
||||
import { Utilities } from 'src/app/services/utilities';
|
||||
import { NostrProfile } from '../../services/interfaces';
|
||||
import { NostrProfile, NostrProfileDocument } from '../../services/interfaces';
|
||||
|
||||
@Component({
|
||||
selector: 'app-profile-widget',
|
||||
@ -13,8 +13,13 @@ export class ProfileWidgetComponent {
|
||||
|
||||
profileName = '';
|
||||
tooltip = '';
|
||||
profile!: NostrProfileDocument;
|
||||
|
||||
constructor(private profiles: ProfileService, private utilities: Utilities) {}
|
||||
|
||||
ngOnInit() {}
|
||||
async ngOnInit() {
|
||||
if(this.pubkey){
|
||||
this.profile = await this.profiles.getProfile(this.pubkey)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user