Loading src/app/review/submission-sources/review-list/review-list.component.html +3 −3 Original line number Diff line number Diff line Loading @@ -90,13 +90,13 @@ <div style="padding-bottom: 10px"> <span style="height: 20px; width: 100px" class="pt-2 pb-2"> <span *ngIf="item['review'].file"> File: {{ item['review']?.file }} | File: {{ item['review']?.file }} </span> <span *ngIf="item['review'].line_start"> First line: {{ item['review']?.line_start }} | | First line: {{ item['review']?.line_start }} </span> <span *ngIf="item['review'].line_end"> Last line: {{ item['review']?.line_end}} | Last line: {{ item['review']?.line_end}} </span> </span> <span style="float: right"> Loading src/app/review/submission-sources/review-list/review-list.component.ts +4 −2 Original line number Diff line number Diff line Loading @@ -86,8 +86,10 @@ export class ReviewListComponent implements OnInit, OnDestroy { private fillTheForm(data) { const startLine = data[0]; const endLine = data[1]; this.createReviewItemForm.controls['firstLine'].setValue(startLine); this.createReviewItemForm.controls['lastLine'].setValue(endLine); if (startLine !== endLine) { this.createReviewItemForm.controls['firstLine'].setValue(startLine); this.createReviewItemForm.controls['lastLine'].setValue(endLine); } if (this.selectedFile) { const path = this.selectedFile[0] === '.' ? this.selectedFile.slice(2, this.selectedFile.length) : this.selectedFile; this.createReviewItemForm.controls['file'].setValue(path); Loading Loading
src/app/review/submission-sources/review-list/review-list.component.html +3 −3 Original line number Diff line number Diff line Loading @@ -90,13 +90,13 @@ <div style="padding-bottom: 10px"> <span style="height: 20px; width: 100px" class="pt-2 pb-2"> <span *ngIf="item['review'].file"> File: {{ item['review']?.file }} | File: {{ item['review']?.file }} </span> <span *ngIf="item['review'].line_start"> First line: {{ item['review']?.line_start }} | | First line: {{ item['review']?.line_start }} </span> <span *ngIf="item['review'].line_end"> Last line: {{ item['review']?.line_end}} | Last line: {{ item['review']?.line_end}} </span> </span> <span style="float: right"> Loading
src/app/review/submission-sources/review-list/review-list.component.ts +4 −2 Original line number Diff line number Diff line Loading @@ -86,8 +86,10 @@ export class ReviewListComponent implements OnInit, OnDestroy { private fillTheForm(data) { const startLine = data[0]; const endLine = data[1]; this.createReviewItemForm.controls['firstLine'].setValue(startLine); this.createReviewItemForm.controls['lastLine'].setValue(endLine); if (startLine !== endLine) { this.createReviewItemForm.controls['firstLine'].setValue(startLine); this.createReviewItemForm.controls['lastLine'].setValue(endLine); } if (this.selectedFile) { const path = this.selectedFile[0] === '.' ? this.selectedFile.slice(2, this.selectedFile.length) : this.selectedFile; this.createReviewItemForm.controls['file'].setValue(path); Loading