From 500b52d17c26b86954365e9a077e89f45940b9a1 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Sun, 6 Aug 2017 12:34:10 +0200 Subject: [PATCH] 404 back improved. --- .../pages/not-found/not-found-page.component.html | 7 +++++-- .../pages/not-found/not-found-page.component.ts | 12 +++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/Squidex/app/shell/pages/not-found/not-found-page.component.html b/src/Squidex/app/shell/pages/not-found/not-found-page.component.html index a17098c68..5a067e4d4 100644 --- a/src/Squidex/app/shell/pages/not-found/not-found-page.component.html +++ b/src/Squidex/app/shell/pages/not-found/not-found-page.component.html @@ -5,7 +5,10 @@

Not Found

-

Sorry, the page you are looking for does not exist

+

+ Sorry, the page or resource you are looking for does not exist. + When you create a new resource, for example an App or Schema it might take some seconds until it is available. +

- Back to Homepage + Back to previous page. \ No newline at end of file diff --git a/src/Squidex/app/shell/pages/not-found/not-found-page.component.ts b/src/Squidex/app/shell/pages/not-found/not-found-page.component.ts index 8fa949d77..87913e4a8 100644 --- a/src/Squidex/app/shell/pages/not-found/not-found-page.component.ts +++ b/src/Squidex/app/shell/pages/not-found/not-found-page.component.ts @@ -6,10 +6,20 @@ */ import { Component } from '@angular/core'; +import { Location } from '@angular/common'; @Component({ selector: 'sqx-not-found-page', styleUrls: ['./not-found-page.component.scss'], templateUrl: './not-found-page.component.html' }) -export class NotFoundPageComponent { } \ No newline at end of file +export class NotFoundPageComponent { + constructor( + private readonly location: Location + ) { + } + + public back() { + this.location.back(); + } +} \ No newline at end of file