Commit 9107995c authored by Kristyna Pekarkova's avatar Kristyna Pekarkova
Browse files

Fixed the review item template

parent aa9aa88e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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 }} |&nbsp;
                  File: {{ item['review']?.file }}
                </span>
                <span *ngIf="item['review'].line_start">
                  First line: {{ item['review']?.line_start }} |&nbsp;
                  | 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">
+4 −2
Original line number Diff line number Diff line
@@ -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);