master
Boris Voropaev 2024-02-14 14:37:34 +03:00
parent ed451cdee2
commit 9e903ae62a
4 changed files with 20 additions and 11 deletions

View File

@ -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 => {

View File

@ -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>

View File

@ -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'
}
}

View File

@ -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;
}
}
}
}