diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-01-23 15:31:36 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-01-23 15:31:36 +0200 |
| commit | 7e8c37760f4e02b35884d3ac68c97ccbca52097c (patch) | |
| tree | ce2dd546abbd7d8fa500b6d4a5168fa377f5f019 /src/DevHive.Angular | |
| parent | eabbb56b0738de41d4591bc80adc3749a463772a (diff) | |
| download | DevHive-7e8c37760f4e02b35884d3ac68c97ccbca52097c.tar DevHive-7e8c37760f4e02b35884d3ac68c97ccbca52097c.tar.gz DevHive-7e8c37760f4e02b35884d3ac68c97ccbca52097c.zip | |
Renamed error component to not-found component (to better match it's purpose)
Diffstat (limited to 'src/DevHive.Angular')
| -rw-r--r-- | src/DevHive.Angular/src/app/app-routing.module.ts | 6 | ||||
| -rw-r--r-- | src/DevHive.Angular/src/app/app.module.ts | 4 | ||||
| -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.ts | 2 | ||||
| -rw-r--r-- | src/DevHive.Angular/src/app/components/profile/profile.component.ts | 2 |
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']); } ); } |
