search
parent
ed451cdee2
commit
9e903ae62a
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<h1>Поиск</h1>
|
||||
<div class="filters" [formGroup]="filters">
|
||||
<div class="limiter">
|
||||
<div class="search">
|
||||
<div class="search-form">
|
||||
<label>Поиск</label>
|
||||
<input type="text" formControlName="search" />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export class RegistryEntryComponent {
|
|||
}
|
||||
|
||||
get bar(){
|
||||
switch(this.registry.type.name){
|
||||
switch(this.registry?.type.name){
|
||||
case 'notice': return 2;
|
||||
case 'standards': return 4;
|
||||
}
|
||||
|
|
@ -57,12 +57,6 @@ export class RegistryEntryComponent {
|
|||
}
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
console.log('registry', this.registry.type)
|
||||
console.log('entry', this.entry)
|
||||
}
|
||||
|
||||
|
||||
add() {
|
||||
this.formsService.createModel('entryOperation', {extraProps: {entry: this.entry.id}}, this.operationsListId);
|
||||
}
|
||||
|
|
@ -80,7 +74,7 @@ export class RegistryEntryComponent {
|
|||
}
|
||||
|
||||
get withToggle(){
|
||||
return this.registry.type.name !== 'workshops'
|
||||
return this.registry?.type.name !== 'workshops'
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -548,4 +548,19 @@ auth-page, auth-modal{
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
.search{
|
||||
.search-form{
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.results{
|
||||
.tabs{
|
||||
button{
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue