From 9e903ae62a02653bfbf49da9b6534a0efecd50c3 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Wed, 14 Feb 2024 14:37:34 +0300 Subject: [PATCH] search --- .../list/publications-list.component.ts | 4 ++-- .../search/page/search-page.component.html | 2 +- .../entries/entry/registry-entry.component.ts | 10 ++-------- src/tk023/css/_forms.scss | 15 +++++++++++++++ 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/app/_modules/publications/list/publications-list.component.ts b/src/app/_modules/publications/list/publications-list.component.ts index 281df1d..c47a79d 100644 --- a/src/app/_modules/publications/list/publications-list.component.ts +++ b/src/app/_modules/publications/list/publications-list.component.ts @@ -50,11 +50,11 @@ export class PublicationsListComponent { add() { - this.formsService.createModel('publication', {extraProps: {page: this.page.id}}, this.listId); + this.formsService.createModel('publication', {extraProps: {page: this.page?.id}}, this.listId); } fetch(controls: any) { - controls.filters.page = this.page.id; + controls.filters.page = this.page?.id; let include = ['posters']; let params = {page: controls.page || 1, filters: JSON.stringify(controls.filters), include: include.join(',')}; this.publicationsService.list(params).subscribe(result => { diff --git a/src/app/_modules/search/page/search-page.component.html b/src/app/_modules/search/page/search-page.component.html index 1f78bbb..0241901 100644 --- a/src/app/_modules/search/page/search-page.component.html +++ b/src/app/_modules/search/page/search-page.component.html @@ -2,7 +2,7 @@

Поиск

-