Skip to content

Commit

Permalink
lint: run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed May 23, 2024
1 parent 9d0c486 commit 4ac157c
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ import { MultiSelectComponent } from '@geonature_common/form/multiselect/multise
styleUrls: ['./zh-multiselect.component.scss'],
})
export class ZHMultiSelectComponent extends MultiSelectComponent implements OnInit {
/**
*/
/**
*/
@Input() multiple: boolean;
@Input() hightlightValue: boolean;
@Input() groupBy: string | null;
@Input() placeholder: string;
@Output() onOpen = new EventEmitter<any>();
constructor() {
super()
super();
this.multiple = true;
this.hightlightValue = true;
this.groupBy = null;
this.placeholder = "Sélectionner";
this.placeholder = 'Sélectionner';
}
ngOnInit() {
super.ngOnInit()
super.ngOnInit();
}

public selectAllFiltered(select: any) {
for (const item of select.itemsList.filteredItems) {
select.select(item)
select.select(item);
}
// close popup
select.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ export class ZhAdvancedSearchFonctionsComponent implements OnInit {
// public dropdownSettingsNoCategory: {};
constructor() {}

ngOnInit() {
}
ngOnInit() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class ZhAdvancedSearchStatutsComponent implements OnInit {
@Input() plans: [];
@Input() strategies: [];
@Input() form: FormGroup;

constructor() {}
ngOnInit() {}
}
7 changes: 1 addition & 6 deletions frontend/app/zh-advanced-search/zh-advanced-search.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ const routes: Routes = [{ path: 'advanced_search', component: ZhAdvancedSearchCo
ZhAdvancedSearchEvaluationsComponent,
],
entryComponents: [],
imports: [
GN2CommonModule,
CommonModule,
RouterModule.forChild(routes),
ZhDetailsModule,
],
imports: [GN2CommonModule, CommonModule, RouterModule.forChild(routes), ZhDetailsModule],
exports: [ZhAdvancedSearchComponent],
})
export class ZhAdvancedSearchModule {}
2 changes: 1 addition & 1 deletion frontend/app/zh-details/zh-details.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const routes: Routes = [{ path: 'zhDetails/:id', component: ZhDetailsComponent }
ImageTableComponent,
DeleteModalComponent,
LabelComponent,
ZHMultiSelectComponent
ZHMultiSelectComponent,
],
})
export class ZhDetailsModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ const routes: Routes = [{ path: 'hierarchy_search', component: ZhHierarchySearch
@NgModule({
declarations: [ZhHierarchySearchComponent, ZhHierarchySearchTableComponent, CapitalizePipe],
entryComponents: [],
imports: [
GN2CommonModule,
CommonModule,
RouterModule.forChild(routes),
ZhDetailsModule,
],
imports: [GN2CommonModule, CommonModule, RouterModule.forChild(routes), ZhDetailsModule],
exports: [ZhHierarchySearchComponent],
})
export class ZhHierarchySearchModule {}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ export class ZhSearchDependantComponent implements OnInit {
@Output() onSelected = new EventEmitter<object>();
public _inputData: inputDataType[] = null;


constructor() {}

ngOnInit() {
if (!this._inputData || this._inputData.length < 1) {
this.disable()
this.disable();
}
}

Expand All @@ -42,9 +41,9 @@ export class ZhSearchDependantComponent implements OnInit {
}
}
disable() {
this.form.disable()
this.form.disable();
}
enable() {
this.form.enable()
this.form.enable();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ export class ZhSearchEnsembleComponent implements OnInit {
@Input() form: FormGroup;
constructor() {}

ngOnInit() {
}
ngOnInit() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ export class ZhSearchSDAGEComponent implements OnInit {

constructor() {}

ngOnInit() {
}
ngOnInit() {}
}
6 changes: 1 addition & 5 deletions frontend/app/zh-search/zh-search.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ const routes: Routes = [{ path: 'search', component: ZhSearchComponent }];
ZhAdvancedSearchModule,
ZhHierarchySearchModule,
],
exports: [
LabelComponent,
TableComponent,
ZHMultiSelectComponent,
ZhSearchComponent],
exports: [LabelComponent, TableComponent, ZHMultiSelectComponent, ZhSearchComponent],
})
export class ZhSearchModule {}

0 comments on commit 4ac157c

Please sign in to comment.