]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+page-not-found/page-not-found.component.ts
Add account setup message to welcome alert after signup
[github/Chocobozzz/PeerTube.git] / client / src / app / +page-not-found / page-not-found.component.ts
index 9302201ea477fdee75131384c7866a889e77b835..10645a634597a0269b358cac42f73d477cf98b43 100644 (file)
@@ -1,7 +1,7 @@
 import { Component, OnInit } from '@angular/core'
 import { Title } from '@angular/platform-browser'
 import { Router } from '@angular/router'
-import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes'
+import { HttpStatusCode } from '@shared/models'
 
 @Component({
   selector: 'my-page-not-found',
@@ -10,7 +10,7 @@ import { HttpStatusCode } from '@shared/core-utils/miscs/http-error-codes'
 })
 export class PageNotFoundComponent implements OnInit {
   status = HttpStatusCode.NOT_FOUND_404
-  type: string
+  type: 'video' | 'other' = 'other'
 
   public constructor (
     private titleService: Title,
@@ -32,15 +32,6 @@ export class PageNotFoundComponent implements OnInit {
     return window.location.pathname
   }
 
-  getRessourceName () {
-    switch (this.type) {
-      case 'video':
-        return $localize`video`
-      default:
-        return $localize`ressource`
-    }
-  }
-
   getMascotName () {
     switch (this.status) {
       case HttpStatusCode.I_AM_A_TEAPOT_418: