-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added guard, fixed some errors with styling, and added some features #142
Conversation
export class CanDeactivateGuard implements CanDeactivate<ProviderConfigComponent> { | ||
canDeactivate(component: ProviderConfigComponent): boolean { | ||
if (component.orgFormGroup.dirty || component.addressFormGroup.dirty || component.photoFormGroup.dirty) { | ||
return confirm('У вас є не збережені дані, покинути сторінку?'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a requirement?
@@ -82,7 +82,7 @@ | |||
</div> | |||
<div class="web-page"> | |||
<label for="webPageForm">Веб сайт</label> | |||
<input type="text" id="webPageForm" formControlName="webPage"> | |||
<input type="text" id="webPageForm" formControlName="webPage" placeholder="380XXXXXXX"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any reason using ids instead of classes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phone number placeholder for web page field?
>ДАЛІ | ||
</button> | ||
</div> | ||
<button class="buttons1_reset" type="button" (click)="formReset()">СКАСУВАТИ</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use meaningful class names and follow conwention
@@ -167,9 +164,9 @@ | |||
</div> | |||
</ng-container> | |||
<div class="buttons2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we dont need 3 sets of buttons, move them outside individual step and use for whole stepper
@@ -101,5 +102,18 @@ export class ProviderConfigComponent implements OnInit { | |||
break; | |||
} | |||
} | |||
|
|||
formReset(): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add annotation
No description provided.