Add support for banner on profile edit

This commit is contained in:
SondreB 2023-01-15 17:56:34 +01:00
parent 454bd1f05e
commit 36ec38d5f9
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF
2 changed files with 9 additions and 1 deletions

View File

@ -27,10 +27,17 @@
<p>
<mat-form-field appearance="outline" class="input-full-width">
<mat-icon matPrefix>image</mat-icon>
<mat-label>Image</mat-label>
<mat-label>Profile Image</mat-label>
<input matInput type="text" [(ngModel)]="profile.picture" />
</mat-form-field>
</p>
<p>
<mat-form-field appearance="outline" class="input-full-width">
<mat-icon matPrefix>image</mat-icon>
<mat-label>Profile Banner</mat-label>
<input matInput type="text" [(ngModel)]="profile.banner" />
</mat-form-field>
</p>
<p>
<mat-form-field appearance="outline" class="input-full-width">
<mat-icon matPrefix>how_to_reg</mat-icon>

View File

@ -41,6 +41,7 @@ export class Utilities {
lud06: profile.lud06,
display_name: profile.display_name,
website: profile.website,
banner: profile.banner,
// TODO: Consider adding support for these in the future depending on how the community of Nostr grows and adopts these fields.
} as NostrProfile;
}