aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/DevHive.Angular/src/app/app-routing.module.ts6
-rw-r--r--src/DevHive.Angular/src/app/app.module.ts4
-rw-r--r--src/DevHive.Angular/src/app/components/not-found/not-found.component.css (renamed from src/DevHive.Angular/src/app/components/error/error.component.css)0
-rw-r--r--src/DevHive.Angular/src/app/components/not-found/not-found.component.html (renamed from src/DevHive.Angular/src/app/components/error/error.component.html)0
-rw-r--r--src/DevHive.Angular/src/app/components/not-found/not-found.component.ts (renamed from src/DevHive.Angular/src/app/components/error/error.component.ts)8
-rw-r--r--src/DevHive.Angular/src/app/components/profile-settings/profile-settings.component.ts2
-rw-r--r--src/DevHive.Angular/src/app/components/profile/profile.component.ts2
7 files changed, 11 insertions, 11 deletions
diff --git a/src/DevHive.Angular/src/app/app-routing.module.ts b/src/DevHive.Angular/src/app/app-routing.module.ts
index d67ad8f..c9a8c61 100644
--- a/src/DevHive.Angular/src/app/app-routing.module.ts
+++ b/src/DevHive.Angular/src/app/app-routing.module.ts
@@ -5,7 +5,7 @@ import { LoginComponent } from './components/login/login.component';
import { RegisterComponent } from './components/register/register.component';
import { ProfileComponent } from './components/profile/profile.component';
import {ProfileSettingsComponent} from './components/profile-settings/profile-settings.component';
-import {ErrorComponent} from './components/error/error.component';
+import {NotFoundComponent} from './components/not-found/not-found.component';
const routes: Routes = [
{ path: '', component: FeedComponent },
@@ -13,8 +13,8 @@ const routes: Routes = [
{ path: 'register', component: RegisterComponent },
{ path: 'profile/:username', component: ProfileComponent },
{ path: 'profile/:username/settings', component: ProfileSettingsComponent },
- { path: 'error', component: ErrorComponent },
- { path: '**', component: ErrorComponent }
+ { path: 'not-found', component: NotFoundComponent },
+ { path: '**', component: NotFoundComponent }
];
@NgModule({
diff --git a/src/DevHive.Angular/src/app/app.module.ts b/src/DevHive.Angular/src/app/app.module.ts
index e404c30..586064e 100644
--- a/src/DevHive.Angular/src/app/app.module.ts
+++ b/src/DevHive.Angular/src/app/app.module.ts
@@ -15,7 +15,7 @@ import { FeedComponent } from './components/feed/feed.component';
import { PostComponent } from './components/post/post.component';
import { ProfileComponent } from './components/profile/profile.component';
import { ProfileSettingsComponent } from './components/profile-settings/profile-settings.component';
-import { ErrorComponent } from './components/error/error.component';
+import { NotFoundComponent } from './components/not-found/not-found.component';
import { LoadingComponent } from './components/loading/loading.component';
import { ErrorBarComponent } from './components/error-bar/error-bar.component';
import { SuccessBarComponent } from './components/success-bar/success-bar.component';
@@ -29,7 +29,7 @@ import { SuccessBarComponent } from './components/success-bar/success-bar.compon
PostComponent,
ProfileComponent,
ProfileSettingsComponent,
- ErrorComponent,
+ NotFoundComponent,
LoadingComponent,
ErrorBarComponent,
SuccessBarComponent
diff --git a/src/DevHive.Angular/src/app/components/error/error.component.css b/src/DevHive.Angular/src/app/components/not-found/not-found.component.css
index ef6231d..ef6231d 100644
--- a/src/DevHive.Angular/src/app/components/error/error.component.css
+++ b/src/DevHive.Angular/src/app/components/not-found/not-found.component.css
diff --git a/src/DevHive.Angular/src/app/components/error/error.component.html b/src/DevHive.Angular/src/app/components/not-found/not-found.component.html
index 8394810..8394810 100644
--- a/src/DevHive.Angular/src/app/components/error/error.component.html
+++ b/src/DevHive.Angular/src/app/components/not-found/not-found.component.html
diff --git a/src/DevHive.Angular/src/app/components/error/error.component.ts b/src/DevHive.Angular/src/app/components/not-found/not-found.component.ts
index 7069dc0..157fb97 100644
--- a/src/DevHive.Angular/src/app/components/error/error.component.ts
+++ b/src/DevHive.Angular/src/app/components/not-found/not-found.component.ts
@@ -2,11 +2,11 @@ import { Component, OnInit } from '@angular/core';
import {Router} from '@angular/router';
@Component({
- selector: 'app-error',
- templateUrl: './error.component.html',
- styleUrls: ['./error.component.css']
+ selector: 'app-not-found',
+ templateUrl: './not-found.component.html',
+ styleUrls: ['./not-found.component.css']
})
-export class ErrorComponent implements OnInit {
+export class NotFoundComponent implements OnInit {
constructor(private _router: Router)
{ }
diff --git a/src/DevHive.Angular/src/app/components/profile-settings/profile-settings.component.ts b/src/DevHive.Angular/src/app/components/profile-settings/profile-settings.component.ts
index f69c579..4954eb7 100644
--- a/src/DevHive.Angular/src/app/components/profile-settings/profile-settings.component.ts
+++ b/src/DevHive.Angular/src/app/components/profile-settings/profile-settings.component.ts
@@ -32,7 +32,7 @@ export class ProfileSettingsComponent implements OnInit {
this._userService.getUserByUsernameRequest(this._urlUsername).subscribe(
(res: object) => this.finishUserLoading(res),
- (err: HttpErrorResponse) => { this._router.navigate(['/error']); }
+ (err: HttpErrorResponse) => { this._router.navigate(['/not-found']); }
);
}
diff --git a/src/DevHive.Angular/src/app/components/profile/profile.component.ts b/src/DevHive.Angular/src/app/components/profile/profile.component.ts
index b4c42a0..42addfb 100644
--- a/src/DevHive.Angular/src/app/components/profile/profile.component.ts
+++ b/src/DevHive.Angular/src/app/components/profile/profile.component.ts
@@ -30,7 +30,7 @@ export class ProfileComponent implements OnInit {
this._userService.getUserByUsernameRequest(this._urlUsername).subscribe(
(res: object) => this.finishUserLoading(res),
- (err: HttpErrorResponse) => { this._router.navigate(['/error']); }
+ (err: HttpErrorResponse) => { this._router.navigate(['/not-found']); }
);
}