Skip to content

Conversation

@Androm10
Copy link
Owner

@Androm10 Androm10 commented Nov 2, 2022

No description provided.

@Androm10 Androm10 changed the base branch from dev to feature/carousel November 2, 2022 12:13
@evmenenko evmenenko changed the base branch from feature/carousel to dev January 9, 2023 16:36
@@ -1,11 +1,25 @@
import { NgModule } from '@angular/core';
import { NgModule, isDevMode } from '@angular/core';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import { NgModule, isDevMode } from '@angular/core';
import { NgModule } from '@angular/core';

type="submit"
class="iap-signup-form__submit-button"
value="Sign Up"
[disabled]="signupForm | isControlInvalid"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
[disabled]="signupForm | isControlInvalid"
[disabled]="signupForm.invalid"

styleUrls: ['./signup-form.component.scss'],
})
export class SignupFormComponent implements OnInit {
@Output() submitEvent: EventEmitter<ApiResponse> = new EventEmitter();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we have already discussed this topic, but when your variable can define its type automatically you haven't to add pure typing.

Suggested change
@Output() submitEvent: EventEmitter<ApiResponse> = new EventEmitter();
@Output() submitEvent = new EventEmitterr<ApiResponse>();

Comment on lines +19 to +21
return this.api.post(url, { login, password }).pipe(
tap((res: any) => this.setSession(res as JwtSession)),
shareReplay(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use your new possibilities!

Suggested change
return this.api.post(url, { login, password }).pipe(
tap((res: any) => this.setSession(res as JwtSession)),
shareReplay(),
return this.api.post<JwtSession>(url, { login, password }).pipe(
tap((res) => this.setSession(res)),
shareReplay(),

const url = apiRoutesAuth.loginAdimn;
return this.api.post(url, { login, password }).pipe(
tap((res: any) => this.setSession(res as JwtSession)),
shareReplay(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remind me what is the reason to use shareReplay here?

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.

3 participants