Skip to content

Commit

Permalink
run es lint
Browse files Browse the repository at this point in the history
  • Loading branch information
larisaVasile committed Jun 11, 2024
1 parent f94a0a0 commit 5af79d4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
6 changes: 3 additions & 3 deletions core/libs/api/src/lib/model-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ export class ModelApiService {
useSemanticVersion: openApi.useSemanticVersion,
pagingOption: openApi.paging,
includeCrud: openApi.includeCrud,
includePost: openApi.includePost || false,
includePut: openApi.includePut || false,
includePatch: openApi.includePatch || false,
includePost: openApi.includePost || false,
includePut: openApi.includePut || false,
includePatch: openApi.includePatch || false,
resourcePath: openApi.resourcePath,
ymlProperties: openApi.ymlProperties || '',
jsonProperties: openApi.jsonProperties || '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,23 @@ export class GenerateOpenApiComponent implements OnInit, OnDestroy {
}),
);

this.subscriptions.add(this.includeCRUD?.valueChanges.subscribe(() => {
console.log('this.includeCRUD?.', this.includeCRUD?.value);
if(this.includeCRUD?.value){
this.includePatch?.setValue(false);
this.includePatch?.disable();
this.includePost?.setValue(false);
this.includePost?.disable();
this.includePut?.setValue(false);
this.includePut?.disable();
}else{
this.includePatch?.enable();
this.includePost?.enable();
this.includePut?.enable();
}
}));

this.subscriptions.add(
this.includeCRUD?.valueChanges.subscribe(() => {
console.log('this.includeCRUD?.', this.includeCRUD?.value);
if (this.includeCRUD?.value) {
this.includePatch?.setValue(false);
this.includePatch?.disable();
this.includePost?.setValue(false);
this.includePost?.disable();
this.includePut?.setValue(false);
this.includePut?.disable();
} else {
this.includePatch?.enable();
this.includePost?.enable();
this.includePut?.enable();
}
}),
);
}

@HostListener('dragover', ['$event'])
Expand Down

0 comments on commit 5af79d4

Please sign in to comment.