Skip to content

Commit

Permalink
Cleanup and bugfixing
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Feb 24, 2024
1 parent 91316d6 commit 9395cac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
11 changes: 6 additions & 5 deletions src/app/auth/forgot-password/forgot-password.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import { faEnvelope } from '@fortawesome/free-solid-svg-icons';
import { passwordResetErrorToMessage } from '../../../utils/authHelpers';
import { firstValueFrom } from 'rxjs';
Expand All @@ -9,7 +9,7 @@ import { AuthService } from '../../../services/auth.service';
templateUrl: './forgot-password.component.html',
styleUrls: ['./forgot-password.component.scss']
})
export class ForgotPasswordComponent implements OnInit {
export class ForgotPasswordComponent {
iconUser = faEnvelope;

errorTranslationKey: string | null = null;
Expand All @@ -22,9 +22,6 @@ export class ForgotPasswordComponent implements OnInit {
private authService: AuthService,
) { }

ngOnInit(): void {
}

async requestNewPassword(form: HTMLFormElement) {
if (!form.reportValidity()) {
return;
Expand All @@ -51,4 +48,8 @@ export class ForgotPasswordComponent implements OnInit {
this.loading = false;
}
}

get title(): string {
return 'Forgot your password';
}
}
3 changes: 3 additions & 0 deletions src/app/auth/password-reset/password-reset.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ export class PasswordResetComponent implements OnInit {
}
}

get title(): string {
return 'Reset Password';
}
}
1 change: 1 addition & 0 deletions src/app/auth/sign-up/sign-up.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ <h2 class="subtitle">{{ 'register.email_sent' | translate }}</h2>
</p>
</div>

<!-- TODO: multi step system to not overwhelm users -->
<div class="container" *ngIf="!showNextStep">
<h1 class="title">{{'user.settings.new.beforeWeStart' | translate}}</h1>
<h2 class="subtitle">{{'user.settings.new.description' | translate}}</h2>
Expand Down
2 changes: 0 additions & 2 deletions src/app/elements/element-country/element-country.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ export class ElementCountryComponent {
'TO', 'TT', 'TN', 'TR', 'TM', 'TC', 'TV', 'UG', 'UA', 'AE', 'GB', 'US', 'UM', 'UY', 'UZ', 'VU',
'VE', 'VN', 'VG', 'VI', 'WF', 'EH', 'YE', 'ZM', 'ZW',
];

constructor() { }
}
3 changes: 2 additions & 1 deletion src/app/user/settings/settings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export class SettingsComponent implements OnInit {
}

ngOnInit(): void {
//
this.tmpPronouns = (this.user.pronouns || '').split(',');
this.tmpLanguages = (this.user.languagesSpoken || '').split(',');
}

addNewConnection(): void {
Expand Down

0 comments on commit 9395cac

Please sign in to comment.