Skip to content
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

Merged
merged 4 commits into from
Apr 9, 2021

Conversation

YuraSimonyan
Copy link
Contributor

No description provided.

@YuraSimonyan YuraSimonyan requested a review from dmitryy90 April 7, 2021 10:13
export class CanDeactivateGuard implements CanDeactivate<ProviderConfigComponent> {
canDeactivate(component: ProviderConfigComponent): boolean {
if (component.orgFormGroup.dirty || component.addressFormGroup.dirty || component.photoFormGroup.dirty) {
return confirm('У вас є не збережені дані, покинути сторінку?');
Copy link
Collaborator

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">
Copy link
Collaborator

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?

Copy link
Collaborator

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>
Copy link
Collaborator

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">
Copy link
Collaborator

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add annotation

@YuraSimonyan YuraSimonyan requested a review from dmitryy90 April 9, 2021 09:22
@YuraSimonyan YuraSimonyan merged commit e160e29 into develop Apr 9, 2021
@litvinets litvinets deleted the ProviderConfig2 branch December 28, 2021 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants