forked from eclipse-edc/DataDashboard
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Setting custom 404 page for broker and connector ui
- Loading branch information
1 parent
b318b3f
commit 0f6ba25
Showing
8 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/app/component-library/error-404-component/page-not-found.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<section class="bg-white"> | ||
<div class="py-18 px-8 lg:py-28 lg:px-6"> | ||
<div class="text-center"> | ||
<h1>404</h1> | ||
<p class="text-bold">Something's missing.</p> | ||
<p class="text-light">Sorry, we can't find that page.</p> | ||
<a routerLink="/" mat-raised-button color="primary"> | ||
Back to {{ navigator }} | ||
</a> | ||
</div> | ||
</div> | ||
</section> |
20 changes: 20 additions & 0 deletions
20
src/app/component-library/error-404-component/page-not-found.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {Component, Inject, OnInit} from '@angular/core'; | ||
import {APP_CONFIG, AppConfig} from '../../core/config/app-config'; | ||
|
||
@Component({ | ||
selector: 'app-page-not-found', | ||
templateUrl: './page-not-found.component.html', | ||
}) | ||
export class PageNotFoundComponent implements OnInit { | ||
navigator!: string; | ||
|
||
constructor(@Inject(APP_CONFIG) private config: AppConfig) {} | ||
|
||
ngOnInit(): void { | ||
if (this.config.profile != 'broker') { | ||
this.navigator = 'Dashboard'; | ||
} else { | ||
this.navigator = 'Data Offers'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters