Open
Conversation
ZinabHashem
requested changes
Nov 6, 2022
| export interface Emplyee{ | ||
| id:number; | ||
| name:string; | ||
| description:string; |
Contributor
There was a problem hiding this comment.
make name of file start by small character.
employee doesn't have description it have company --> get it from swagger.
| }) | ||
| export class MessageService { | ||
| delete(id: number) { | ||
| throw new Error('Method not implemented.'); |
Contributor
There was a problem hiding this comment.
why you made this function?
|
|
||
| constructor( | ||
| private formBuilder: FormBuilder, | ||
| private _EmployeeRepository: EmployeeRepository, |
Contributor
There was a problem hiding this comment.
name must be camel case.
| companyId:['', [Validators.required]] | ||
| } | ||
| addEmployee(){ | ||
| this._EmployeeRepository.update(this.employeeForm.value).subscribe(()=>{ |
Contributor
There was a problem hiding this comment.
this function add not update
| .subscribe((result) => { | ||
| this.allEmployees = result.data; | ||
| this.totalItems = result.pagination.itemCount; | ||
| console.log(result) |
| }) | ||
| }) | ||
| } | ||
| onSubmit() {} |
Contributor
There was a problem hiding this comment.
delete unneeded function.
| this.isVisible = !this.isVisible; | ||
| } | ||
| appearRest() { | ||
| this.isRestButtonAppear = true; |
Contributor
There was a problem hiding this comment.
are you need this function?
ZinabHashem
requested changes
Nov 7, 2022
| <mat-option value="over">Over</mat-option> | ||
| <mat-option value="push">Push</mat-option> | ||
| <mat-option value="Education">Education</mat-option> | ||
| <mat-option value="Government">Government</mat-option> |
Contributor
| export interface emplyee{ | ||
| id:number; | ||
| name:string; | ||
|
|
Contributor
| totalItems: number = 0; | ||
|
|
||
| constructor(private formBuilder: FormBuilder, private companyRepository: CompanyRepository,private message: MessageService) { } | ||
| constructor(private FormBuilder: FormBuilder, private companyRepository: CompanyRepository,private message: MessageService) { } |
Contributor
There was a problem hiding this comment.
make FormBuilder ---> camel case
| size: number = 10; | ||
| totalItems: number = 0; | ||
| allEmployees: emplyee[] = []; | ||
| isRestButtonAppear: boolean; |
Contributor
There was a problem hiding this comment.
delete un need property
| this.employeeForm = this.formBuilder.group({ | ||
| id: [''], | ||
| name: ['', [Validators.required]], | ||
| companyId: ['', [Validators.required]], |
Contributor
There was a problem hiding this comment.
it will be same of interface company not companyId
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.