Skip to content

Commit

Permalink
chore: urlIcon isn't required
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem committed Aug 16, 2024
1 parent c9aadc9 commit 128f28a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[formGroup]="form"
(submit)="onSubmit()"
>
<div class="info">
<div class="info block-input">
<div tuiCell="l">
<tui-avatar
size="xl"
Expand All @@ -19,13 +19,6 @@
</div>
</div>
</div>
<tui-error
formControlName="urlIcon"
class="block-input"
[error]="[] | tuiFieldError | async"
[style.text-align]="'center'"
/>

<tui-input
formControlName="name"
tuiHintContent="Your project name with spaces"
Expand Down Expand Up @@ -87,7 +80,7 @@
</button>
<ng-template
let-observer
[tuiDialogOptions]="{label: 'Edit logo', size: 's'}"
[tuiDialogOptions]="{label: 'Edit logo', size: 's', closeable: false, dismissible: false}"
[(tuiDialog)]="openIcon"
>
<p>URL of 256x256 pixel PNG image of token logo</p>
Expand All @@ -97,10 +90,17 @@
>
Logo token
</tui-input>
<tui-error
formControlName="urlIcon"
class="block-input"
[error]="[] | tuiFieldError | async"
[style.text-align]="'center'"
/>

<p>
<button
tuiButton
(click)="observer.complete()"
(click)="icon !== '' ? observer.complete() : ''"
>
Submit
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class MinterDeployComponent {
Validators.maxLength(5),
]),
amount: new FormControl(0, [Validators.required, Validators.min(1)]),
urlIcon: new FormControl('', [Validators.required]),
urlIcon: new FormControl(''),
description: new FormControl(''),
});

Expand Down

0 comments on commit 128f28a

Please sign in to comment.