diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml
index 63577d8..e33246b 100644
--- a/.gitea/workflows/ci.yml
+++ b/.gitea/workflows/ci.yml
@@ -77,7 +77,6 @@ jobs:
validate-docker-frontend:
runs-on: ubuntu-latest
name: Docker frontend validation
- needs: changed_files
if: ${{ needs.changed_files.outputs.frontend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
container:
image: catthehacker/ubuntu:act-latest
@@ -94,7 +93,6 @@ jobs:
validate-docker-backend:
runs-on: ubuntu-latest
name: Docker backend validation
- needs: changed_files
if: ${{ needs.changed_files.outputs.backend == 'true' || needs.changed_files.outputs.workflow == 'true' }}
container:
image: catthehacker/ubuntu:act-latest
diff --git a/frontend/src/app/feature/auth/login/login.component.html b/frontend/src/app/feature/auth/login/login.component.html
index 40fc3e6..c10b232 100644
--- a/frontend/src/app/feature/auth/login/login.component.html
+++ b/frontend/src/app/feature/auth/login/login.component.html
@@ -2,11 +2,9 @@
Anmelden
- @if (errorMessage()) {
-
- {{ errorMessage() }}
-
- }
+
+ {{ errorMessage }}
+
diff --git a/frontend/src/app/feature/auth/login/login.component.ts b/frontend/src/app/feature/auth/login/login.component.ts
index 8874dbc..1ed3537 100644
--- a/frontend/src/app/feature/auth/login/login.component.ts
+++ b/frontend/src/app/feature/auth/login/login.component.ts
@@ -1,8 +1,8 @@
-import { Component, signal } from '@angular/core';
+import { Component } from '@angular/core';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { Router, RouterLink } from '@angular/router';
import { LoginRequest } from '../../../model/auth/LoginRequest';
-import { AuthService } from '@service/auth.service';
+import { AuthService } from '../../../service/auth.service';
import { CommonModule } from '@angular/common';
@Component({
@@ -13,8 +13,8 @@ import { CommonModule } from '@angular/common';
})
export class LoginComponent {
loginForm: FormGroup;
- errorMessage = signal('');
- isLoading = signal(false);
+ errorMessage = '';
+ isLoading = false;
constructor(
private fb: FormBuilder,
@@ -36,8 +36,8 @@ export class LoginComponent {
return;
}
- this.isLoading.set(true);
- this.errorMessage.set('');
+ this.isLoading = true;
+ this.errorMessage = '';
const loginRequest: LoginRequest = {
usernameOrEmail: this.form['usernameOrEmail'].value,
@@ -49,10 +49,8 @@ export class LoginComponent {
this.router.navigate(['/home']);
},
error: (err) => {
- this.isLoading.set(false);
- this.errorMessage.set(
- err.error?.message || 'Failed to login. Please check your credentials.'
- );
+ this.isLoading = false;
+ this.errorMessage = err.error?.message || 'Failed to login. Please check your credentials.';
},
});
}