File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
tensorboard/webapp/runs/views/runs_table Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 46
46
< mat-checkbox
47
47
[checked] ="allRowsSelected() "
48
48
[indeterminate] ="!allRowsSelected() && someRowsSelected() "
49
- (click) ="onAllSelectionToggle.emit(getRunIds() ) "
49
+ (click) ="handleSelectAll($event ) "
50
50
> </ mat-checkbox >
51
51
</ div >
52
52
< span class ="group-menu-container " *ngSwitchCase ="'color' ">
Original file line number Diff line number Diff line change @@ -88,10 +88,6 @@ export class RunsDataTable {
88
88
) ;
89
89
}
90
90
91
- getRunIds ( ) {
92
- return this . data . map ( ( row ) => row . id ) ;
93
- }
94
-
95
91
allRowsSelected ( ) {
96
92
return this . data . every ( ( row ) => row [ 'selected' ] ) ;
97
93
}
@@ -100,6 +96,11 @@ export class RunsDataTable {
100
96
return this . data . some ( ( row ) => row [ 'selected' ] ) ;
101
97
}
102
98
99
+ handleSelectAll ( event : MouseEvent ) {
100
+ event . preventDefault ( ) ;
101
+ this . onAllSelectionToggle . emit ( this . data . map ( ( row ) => row . id ) ) ;
102
+ }
103
+
103
104
onFilterKeyUp ( event : KeyboardEvent ) {
104
105
const input = event . target ! as HTMLInputElement ;
105
106
this . onRegexFilterChange . emit ( input . value ) ;
You can’t perform that action at this time.
0 commit comments