mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	refactored titles
This commit is contained in:
		| @@ -1,21 +1,29 @@ | |||||||
| import { Component, Input, OnInit } from '@angular/core'; | import { Component, Input } from '@angular/core'; | ||||||
|  | import { Title } from '@angular/platform-browser'; | ||||||
|  | import { environment } from 'src/environments/environment'; | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-page-header', |   selector: 'app-page-header', | ||||||
|   templateUrl: './page-header.component.html', |   templateUrl: './page-header.component.html', | ||||||
|   styleUrls: ['./page-header.component.scss'] |   styleUrls: ['./page-header.component.scss'] | ||||||
| }) | }) | ||||||
| export class PageHeaderComponent implements OnInit { | export class PageHeaderComponent { | ||||||
|  |  | ||||||
|   constructor() { } |   constructor(private titleService: Title) { } | ||||||
|  |  | ||||||
|  |   _title = "" | ||||||
|  |  | ||||||
|   @Input() |   @Input() | ||||||
|   title: string = "" |   set title(title: string) { | ||||||
|  |     this._title = title | ||||||
|  |     this.titleService.setTitle(`${this.title} - ${environment.appTitle}`) | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   get title() { | ||||||
|  |     return this._title | ||||||
|  |   } | ||||||
|  |  | ||||||
|   @Input() |   @Input() | ||||||
|   subTitle: string = "" |   subTitle: string = "" | ||||||
|  |  | ||||||
|   ngOnInit(): void { |  | ||||||
|   } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,8 +1,6 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'; | import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'; | ||||||
| import { SavedViewService } from 'src/app/services/rest/saved-view.service'; | import { SavedViewService } from 'src/app/services/rest/saved-view.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
| @@ -13,8 +11,7 @@ import { environment } from 'src/environments/environment'; | |||||||
| export class DashboardComponent implements OnInit { | export class DashboardComponent implements OnInit { | ||||||
|  |  | ||||||
|   constructor( |   constructor( | ||||||
|     private savedViewService: SavedViewService, |     private savedViewService: SavedViewService) { } | ||||||
|     private titleService: Title) { } |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   savedViews: PaperlessSavedView[] = [] |   savedViews: PaperlessSavedView[] = [] | ||||||
| @@ -23,7 +20,6 @@ export class DashboardComponent implements OnInit { | |||||||
|     this.savedViewService.listAll().subscribe(results => { |     this.savedViewService.listAll().subscribe(results => { | ||||||
|       this.savedViews = results.results.filter(savedView => savedView.show_on_dashboard) |       this.savedViews = results.results.filter(savedView => savedView.show_on_dashboard) | ||||||
|     }) |     }) | ||||||
|     this.titleService.setTitle(`Dashboard - ${environment.appTitle}`) |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,6 +1,5 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { FormControl, FormGroup } from '@angular/forms'; | import { FormControl, FormGroup } from '@angular/forms'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute, Router } from '@angular/router'; | ||||||
| import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | ||||||
| import { PaperlessCorrespondent } from 'src/app/data/paperless-correspondent'; | import { PaperlessCorrespondent } from 'src/app/data/paperless-correspondent'; | ||||||
| @@ -12,7 +11,6 @@ import { OpenDocumentsService } from 'src/app/services/open-documents.service'; | |||||||
| import { CorrespondentService } from 'src/app/services/rest/correspondent.service'; | import { CorrespondentService } from 'src/app/services/rest/correspondent.service'; | ||||||
| import { DocumentTypeService } from 'src/app/services/rest/document-type.service'; | import { DocumentTypeService } from 'src/app/services/rest/document-type.service'; | ||||||
| import { DocumentService } from 'src/app/services/rest/document.service'; | import { DocumentService } from 'src/app/services/rest/document.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
| import { ConfirmDialogComponent } from '../common/confirm-dialog/confirm-dialog.component'; | import { ConfirmDialogComponent } from '../common/confirm-dialog/confirm-dialog.component'; | ||||||
| import { CorrespondentEditDialogComponent } from '../manage/correspondent-list/correspondent-edit-dialog/correspondent-edit-dialog.component'; | import { CorrespondentEditDialogComponent } from '../manage/correspondent-list/correspondent-edit-dialog/correspondent-edit-dialog.component'; | ||||||
| import { DocumentTypeEditDialogComponent } from '../manage/document-type-list/document-type-edit-dialog/document-type-edit-dialog.component'; | import { DocumentTypeEditDialogComponent } from '../manage/document-type-list/document-type-edit-dialog/document-type-edit-dialog.component'; | ||||||
| @@ -56,8 +54,7 @@ export class DocumentDetailComponent implements OnInit { | |||||||
|     private router: Router, |     private router: Router, | ||||||
|     private modalService: NgbModal, |     private modalService: NgbModal, | ||||||
|     private openDocumentService: OpenDocumentsService, |     private openDocumentService: OpenDocumentsService, | ||||||
|     private documentListViewService: DocumentListViewService, |     private documentListViewService: DocumentListViewService) { } | ||||||
|     private titleService: Title) { } |  | ||||||
|  |  | ||||||
|   getContentType() { |   getContentType() { | ||||||
|     return this.metadata?.has_archive_version ? 'application/pdf' : this.metadata?.original_mime_type |     return this.metadata?.has_archive_version ? 'application/pdf' : this.metadata?.original_mime_type | ||||||
| @@ -90,7 +87,6 @@ export class DocumentDetailComponent implements OnInit { | |||||||
|  |  | ||||||
|   updateComponent(doc: PaperlessDocument) { |   updateComponent(doc: PaperlessDocument) { | ||||||
|     this.document = doc |     this.document = doc | ||||||
|     this.titleService.setTitle(`${doc.title} - ${environment.appTitle}`) |  | ||||||
|     this.documentsService.getMetadata(doc.id).subscribe(result => { |     this.documentsService.getMetadata(doc.id).subscribe(result => { | ||||||
|       this.metadata = result |       this.metadata = result | ||||||
|     }) |     }) | ||||||
|   | |||||||
| @@ -1,5 +1,4 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute, Router } from '@angular/router'; | ||||||
| import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | ||||||
| import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'; | import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'; | ||||||
| @@ -7,7 +6,6 @@ import { DocumentListViewService } from 'src/app/services/document-list-view.ser | |||||||
| import { DOCUMENT_SORT_FIELDS } from 'src/app/services/rest/document.service'; | import { DOCUMENT_SORT_FIELDS } from 'src/app/services/rest/document.service'; | ||||||
| import { SavedViewService } from 'src/app/services/rest/saved-view.service'; | import { SavedViewService } from 'src/app/services/rest/saved-view.service'; | ||||||
| import { Toast, ToastService } from 'src/app/services/toast.service'; | import { Toast, ToastService } from 'src/app/services/toast.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
| import { FilterEditorComponent } from '../filter-editor/filter-editor.component'; | import { FilterEditorComponent } from '../filter-editor/filter-editor.component'; | ||||||
| import { SaveViewConfigDialogComponent } from './save-view-config-dialog/save-view-config-dialog.component'; | import { SaveViewConfigDialogComponent } from './save-view-config-dialog/save-view-config-dialog.component'; | ||||||
|  |  | ||||||
| @@ -24,8 +22,7 @@ export class DocumentListComponent implements OnInit { | |||||||
|     public route: ActivatedRoute, |     public route: ActivatedRoute, | ||||||
|     private router: Router, |     private router: Router, | ||||||
|     private toastService: ToastService, |     private toastService: ToastService, | ||||||
|     public modalService: NgbModal, |     public modalService: NgbModal) { } | ||||||
|     private titleService: Title) { } |  | ||||||
|  |  | ||||||
|   @ViewChild("filterEditor") |   @ViewChild("filterEditor") | ||||||
|   private filterEditor: FilterEditorComponent |   private filterEditor: FilterEditorComponent | ||||||
| @@ -62,12 +59,10 @@ export class DocumentListComponent implements OnInit { | |||||||
|           } |           } | ||||||
|  |  | ||||||
|           this.list.savedView = view |           this.list.savedView = view | ||||||
|           this.titleService.setTitle(`${this.list.savedView.name} - ${environment.appTitle}`) |  | ||||||
|           this.list.reload() |           this.list.reload() | ||||||
|         }) |         }) | ||||||
|       } else { |       } else { | ||||||
|         this.list.savedView = null |         this.list.savedView = null | ||||||
|         this.titleService.setTitle(`Documents - ${environment.appTitle}`) |  | ||||||
|         this.list.reload() |         this.list.reload() | ||||||
|       } |       } | ||||||
|     }) |     }) | ||||||
|   | |||||||
| @@ -1,9 +1,7 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | ||||||
| import { PaperlessCorrespondent } from 'src/app/data/paperless-correspondent'; | import { PaperlessCorrespondent } from 'src/app/data/paperless-correspondent'; | ||||||
| import { CorrespondentService } from 'src/app/services/rest/correspondent.service'; | import { CorrespondentService } from 'src/app/services/rest/correspondent.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
| import { GenericListComponent } from '../generic-list/generic-list.component'; | import { GenericListComponent } from '../generic-list/generic-list.component'; | ||||||
| import { CorrespondentEditDialogComponent } from './correspondent-edit-dialog/correspondent-edit-dialog.component'; | import { CorrespondentEditDialogComponent } from './correspondent-edit-dialog/correspondent-edit-dialog.component'; | ||||||
|  |  | ||||||
| @@ -12,9 +10,9 @@ import { CorrespondentEditDialogComponent } from './correspondent-edit-dialog/co | |||||||
|   templateUrl: './correspondent-list.component.html', |   templateUrl: './correspondent-list.component.html', | ||||||
|   styleUrls: ['./correspondent-list.component.scss'] |   styleUrls: ['./correspondent-list.component.scss'] | ||||||
| }) | }) | ||||||
| export class CorrespondentListComponent extends GenericListComponent<PaperlessCorrespondent> implements OnInit { | export class CorrespondentListComponent extends GenericListComponent<PaperlessCorrespondent> { | ||||||
|  |  | ||||||
|   constructor(correspondentsService: CorrespondentService, modalService: NgbModal, private titleService: Title) {  |   constructor(correspondentsService: CorrespondentService, modalService: NgbModal,) {  | ||||||
|     super(correspondentsService,modalService,CorrespondentEditDialogComponent) |     super(correspondentsService,modalService,CorrespondentEditDialogComponent) | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -22,9 +20,4 @@ export class CorrespondentListComponent extends GenericListComponent<PaperlessCo | |||||||
|     return `correspondent '${object.name}'` |     return `correspondent '${object.name}'` | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   ngOnInit(): void { |  | ||||||
|     super.ngOnInit() |  | ||||||
|     this.titleService.setTitle(`Correspondents - ${environment.appTitle}`) |  | ||||||
|   } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,9 +1,7 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | ||||||
| import { PaperlessDocumentType } from 'src/app/data/paperless-document-type'; | import { PaperlessDocumentType } from 'src/app/data/paperless-document-type'; | ||||||
| import { DocumentTypeService } from 'src/app/services/rest/document-type.service'; | import { DocumentTypeService } from 'src/app/services/rest/document-type.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
| import { GenericListComponent } from '../generic-list/generic-list.component'; | import { GenericListComponent } from '../generic-list/generic-list.component'; | ||||||
| import { DocumentTypeEditDialogComponent } from './document-type-edit-dialog/document-type-edit-dialog.component'; | import { DocumentTypeEditDialogComponent } from './document-type-edit-dialog/document-type-edit-dialog.component'; | ||||||
|  |  | ||||||
| @@ -12,9 +10,9 @@ import { DocumentTypeEditDialogComponent } from './document-type-edit-dialog/doc | |||||||
|   templateUrl: './document-type-list.component.html', |   templateUrl: './document-type-list.component.html', | ||||||
|   styleUrls: ['./document-type-list.component.scss'] |   styleUrls: ['./document-type-list.component.scss'] | ||||||
| }) | }) | ||||||
| export class DocumentTypeListComponent extends GenericListComponent<PaperlessDocumentType> implements OnInit { | export class DocumentTypeListComponent extends GenericListComponent<PaperlessDocumentType> { | ||||||
|  |  | ||||||
|   constructor(service: DocumentTypeService, modalService: NgbModal, private titleService: Title) { |   constructor(service: DocumentTypeService, modalService: NgbModal) { | ||||||
|     super(service, modalService, DocumentTypeEditDialogComponent) |     super(service, modalService, DocumentTypeEditDialogComponent) | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @@ -22,8 +20,4 @@ export class DocumentTypeListComponent extends GenericListComponent<PaperlessDoc | |||||||
|     return `document type '${object.name}'` |     return `document type '${object.name}'` | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   ngOnInit(): void { |  | ||||||
|     super.ngOnInit() |  | ||||||
|     this.titleService.setTitle(`Document types - ${environment.appTitle}`) |  | ||||||
|   } |  | ||||||
| } | } | ||||||
|   | |||||||
| @@ -1,8 +1,6 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { LOG_LEVELS, LOG_LEVEL_INFO, PaperlessLog } from 'src/app/data/paperless-log'; | import { LOG_LEVELS, LOG_LEVEL_INFO, PaperlessLog } from 'src/app/data/paperless-log'; | ||||||
| import { LogService } from 'src/app/services/rest/log.service'; | import { LogService } from 'src/app/services/rest/log.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-logs', |   selector: 'app-logs', | ||||||
| @@ -11,14 +9,13 @@ import { environment } from 'src/environments/environment'; | |||||||
| }) | }) | ||||||
| export class LogsComponent implements OnInit { | export class LogsComponent implements OnInit { | ||||||
|  |  | ||||||
|   constructor(private logService: LogService, private titleService: Title) { } |   constructor(private logService: LogService) { } | ||||||
|  |  | ||||||
|   logs: PaperlessLog[] = [] |   logs: PaperlessLog[] = [] | ||||||
|   level: number = LOG_LEVEL_INFO |   level: number = LOG_LEVEL_INFO | ||||||
|  |  | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|     this.reload() |     this.reload() | ||||||
|     this.titleService.setTitle(`Logs - ${environment.appTitle}`) |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   reload() { |   reload() { | ||||||
|   | |||||||
| @@ -1,18 +1,16 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { FormControl, FormGroup } from '@angular/forms'; | import { FormControl, FormGroup } from '@angular/forms'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'; | import { PaperlessSavedView } from 'src/app/data/paperless-saved-view'; | ||||||
| import { GENERAL_SETTINGS } from 'src/app/data/storage-keys'; | import { GENERAL_SETTINGS } from 'src/app/data/storage-keys'; | ||||||
| import { DocumentListViewService } from 'src/app/services/document-list-view.service'; | import { DocumentListViewService } from 'src/app/services/document-list-view.service'; | ||||||
| import { SavedViewService } from 'src/app/services/rest/saved-view.service'; | import { SavedViewService } from 'src/app/services/rest/saved-view.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-settings', |   selector: 'app-settings', | ||||||
|   templateUrl: './settings.component.html', |   templateUrl: './settings.component.html', | ||||||
|   styleUrls: ['./settings.component.scss'] |   styleUrls: ['./settings.component.scss'] | ||||||
| }) | }) | ||||||
| export class SettingsComponent implements OnInit { | export class SettingsComponent { | ||||||
|  |  | ||||||
|   settingsForm = new FormGroup({ |   settingsForm = new FormGroup({ | ||||||
|     'documentListItemPerPage': new FormControl(+localStorage.getItem(GENERAL_SETTINGS.DOCUMENT_LIST_SIZE) || GENERAL_SETTINGS.DOCUMENT_LIST_SIZE_DEFAULT) |     'documentListItemPerPage': new FormControl(+localStorage.getItem(GENERAL_SETTINGS.DOCUMENT_LIST_SIZE) || GENERAL_SETTINGS.DOCUMENT_LIST_SIZE_DEFAULT) | ||||||
| @@ -20,14 +18,9 @@ export class SettingsComponent implements OnInit { | |||||||
|  |  | ||||||
|   constructor( |   constructor( | ||||||
|     public savedViewService: SavedViewService, |     public savedViewService: SavedViewService, | ||||||
|     private documentListViewService: DocumentListViewService, |     private documentListViewService: DocumentListViewService | ||||||
|     private titleService: Title |  | ||||||
|   ) { } |   ) { } | ||||||
|  |  | ||||||
|   ngOnInit(): void { |  | ||||||
|     this.titleService.setTitle(`Settings - ${environment.appTitle}`) |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   deleteSavedView(savedView: PaperlessSavedView) { |   deleteSavedView(savedView: PaperlessSavedView) { | ||||||
|     this.savedViewService.delete(savedView).subscribe(() => {}) |     this.savedViewService.delete(savedView).subscribe(() => {}) | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -1,9 +1,7 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; | ||||||
| import { TAG_COLOURS, PaperlessTag } from 'src/app/data/paperless-tag'; | import { TAG_COLOURS, PaperlessTag } from 'src/app/data/paperless-tag'; | ||||||
| import { TagService } from 'src/app/services/rest/tag.service'; | import { TagService } from 'src/app/services/rest/tag.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
| import { GenericListComponent } from '../generic-list/generic-list.component'; | import { GenericListComponent } from '../generic-list/generic-list.component'; | ||||||
| import { TagEditDialogComponent } from './tag-edit-dialog/tag-edit-dialog.component'; | import { TagEditDialogComponent } from './tag-edit-dialog/tag-edit-dialog.component'; | ||||||
|  |  | ||||||
| @@ -12,18 +10,12 @@ import { TagEditDialogComponent } from './tag-edit-dialog/tag-edit-dialog.compon | |||||||
|   templateUrl: './tag-list.component.html', |   templateUrl: './tag-list.component.html', | ||||||
|   styleUrls: ['./tag-list.component.scss'] |   styleUrls: ['./tag-list.component.scss'] | ||||||
| }) | }) | ||||||
| export class TagListComponent extends GenericListComponent<PaperlessTag> implements OnInit { | export class TagListComponent extends GenericListComponent<PaperlessTag> { | ||||||
|  |  | ||||||
|   constructor(tagService: TagService, modalService: NgbModal, private titleService: Title) { |   constructor(tagService: TagService, modalService: NgbModal) { | ||||||
|     super(tagService, modalService, TagEditDialogComponent) |     super(tagService, modalService, TagEditDialogComponent) | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |  | ||||||
|   ngOnInit(): void { |  | ||||||
|     super.ngOnInit() |  | ||||||
|     this.titleService.setTitle(`Tags - ${environment.appTitle}`) |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   getColor(id) { |   getColor(id) { | ||||||
|     return TAG_COLOURS.find(c => c.id == id) |     return TAG_COLOURS.find(c => c.id == id) | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -1,9 +1,7 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { Title } from '@angular/platform-browser'; |  | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute, Router } from '@angular/router'; | ||||||
| import { SearchHit } from 'src/app/data/search-result'; | import { SearchHit } from 'src/app/data/search-result'; | ||||||
| import { SearchService } from 'src/app/services/rest/search.service'; | import { SearchService } from 'src/app/services/rest/search.service'; | ||||||
| import { environment } from 'src/environments/environment'; |  | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-search', |   selector: 'app-search', | ||||||
| @@ -28,7 +26,7 @@ export class SearchComponent implements OnInit { | |||||||
|  |  | ||||||
|   errorMessage: string |   errorMessage: string | ||||||
|  |  | ||||||
|   constructor(private searchService: SearchService, private route: ActivatedRoute, private router: Router, private titleService: Title) { } |   constructor(private searchService: SearchService, private route: ActivatedRoute, private router: Router) { } | ||||||
|  |  | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|     this.route.queryParamMap.subscribe(paramMap => { |     this.route.queryParamMap.subscribe(paramMap => { | ||||||
| @@ -36,7 +34,6 @@ export class SearchComponent implements OnInit { | |||||||
|       this.searching = true |       this.searching = true | ||||||
|       this.currentPage = 1 |       this.currentPage = 1 | ||||||
|       this.loadPage() |       this.loadPage() | ||||||
|       this.titleService.setTitle(`Search: ${this.query} - ${environment.appTitle}`) |  | ||||||
|     }) |     }) | ||||||
|  |  | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler