From 9395cac445b3337374b246f181de0b89a899c661 Mon Sep 17 00:00:00 2001
From: duncte123
Date: Sat, 24 Feb 2024 17:16:06 +0100
Subject: [PATCH] Cleanup and bugfixing
---
.../auth/forgot-password/forgot-password.component.ts | 11 ++++++-----
.../auth/password-reset/password-reset.component.ts | 3 +++
src/app/auth/sign-up/sign-up.component.html | 1 +
.../element-country/element-country.component.ts | 2 --
src/app/user/settings/settings.component.ts | 3 ++-
5 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/app/auth/forgot-password/forgot-password.component.ts b/src/app/auth/forgot-password/forgot-password.component.ts
index 4e364d9b..7b23c50a 100644
--- a/src/app/auth/forgot-password/forgot-password.component.ts
+++ b/src/app/auth/forgot-password/forgot-password.component.ts
@@ -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';
@@ -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;
@@ -22,9 +22,6 @@ export class ForgotPasswordComponent implements OnInit {
private authService: AuthService,
) { }
- ngOnInit(): void {
- }
-
async requestNewPassword(form: HTMLFormElement) {
if (!form.reportValidity()) {
return;
@@ -51,4 +48,8 @@ export class ForgotPasswordComponent implements OnInit {
this.loading = false;
}
}
+
+ get title(): string {
+ return 'Forgot your password';
+ }
}
diff --git a/src/app/auth/password-reset/password-reset.component.ts b/src/app/auth/password-reset/password-reset.component.ts
index dbcc5735..d4935c32 100644
--- a/src/app/auth/password-reset/password-reset.component.ts
+++ b/src/app/auth/password-reset/password-reset.component.ts
@@ -59,4 +59,7 @@ export class PasswordResetComponent implements OnInit {
}
}
+ get title(): string {
+ return 'Reset Password';
+ }
}
diff --git a/src/app/auth/sign-up/sign-up.component.html b/src/app/auth/sign-up/sign-up.component.html
index e0b4cfa4..d72c506a 100644
--- a/src/app/auth/sign-up/sign-up.component.html
+++ b/src/app/auth/sign-up/sign-up.component.html
@@ -6,6 +6,7 @@ {{ 'register.email_sent' | translate }}
+
{{'user.settings.new.beforeWeStart' | translate}}
{{'user.settings.new.description' | translate}}
diff --git a/src/app/elements/element-country/element-country.component.ts b/src/app/elements/element-country/element-country.component.ts
index 54258a5a..f19cc3de 100644
--- a/src/app/elements/element-country/element-country.component.ts
+++ b/src/app/elements/element-country/element-country.component.ts
@@ -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() { }
}
diff --git a/src/app/user/settings/settings.component.ts b/src/app/user/settings/settings.component.ts
index ed3b0da4..d810b785 100644
--- a/src/app/user/settings/settings.component.ts
+++ b/src/app/user/settings/settings.component.ts
@@ -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 {