Skip to content

Commit

Permalink
fix(list-view): table index except first page
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed Jun 14, 2020
1 parent b7cc817 commit b9d7fcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/pages/manager/fileMode/listView/listView.component.ts
Expand Up @@ -36,11 +36,11 @@ import { ClipboardService } from '../../clipboard/clipboard.service';
[selectAllTemplate]="secAll"
(event)="eventEmitted($event)"
>
<ng-template let-row let-idx="index">
<td (dblclick)="$event.stopPropagation()" (click)="toggle(idx); $event.preventDefault()">
<ng-template let-row>
<td (dblclick)="$event.stopPropagation()" (click)="toggle(row); $event.preventDefault()">
<nb-checkbox [(checked)]="row.check" (checkedChange)="onToggle()"> </nb-checkbox>
</td>
<td (click)="toggle(idx)" (dblclick)="$event.stopPropagation()">
<td (click)="toggle(row)" (dblclick)="$event.stopPropagation()">
<nb-icon
*ngIf="row.ManipulateIcon"
class="manipulation"
Expand Down Expand Up @@ -145,8 +145,8 @@ export class ListViewComponent implements OnInit, OnDestroy {
this.checAllInteral = true;
}
}
toggle(idx: number) {
this.data[idx].check = !this.data[idx].check;
toggle(row: any) {
row.check = !row.check;
this.onToggle();
}

Expand Down

0 comments on commit b9d7fcf

Please sign in to comment.