Thomas Kaul
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
4 deletions
-
.eslintrc.json
-
libs/ui/src/lib/activities-table/activities-table.component.ts
|
@ -107,7 +107,6 @@ |
|
|
"@typescript-eslint/no-unsafe-argument": "warn", |
|
|
"@typescript-eslint/no-unsafe-argument": "warn", |
|
|
"@typescript-eslint/no-unsafe-assignment": "warn", |
|
|
"@typescript-eslint/no-unsafe-assignment": "warn", |
|
|
"@typescript-eslint/no-unsafe-enum-comparison": "warn", |
|
|
"@typescript-eslint/no-unsafe-enum-comparison": "warn", |
|
|
"@typescript-eslint/no-unused-expressions": "warn", |
|
|
|
|
|
"@typescript-eslint/no-unsafe-member-access": "warn", |
|
|
"@typescript-eslint/no-unsafe-member-access": "warn", |
|
|
"@typescript-eslint/no-unsafe-return": "warn", |
|
|
"@typescript-eslint/no-unsafe-return": "warn", |
|
|
"@typescript-eslint/no-unused-vars": "warn", |
|
|
"@typescript-eslint/no-unused-vars": "warn", |
|
|
|
@ -269,9 +269,13 @@ export class GfActivitiesTableComponent |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public toggleAllRows() { |
|
|
public toggleAllRows() { |
|
|
this.areAllRowsSelected() |
|
|
if (this.areAllRowsSelected()) { |
|
|
? this.selectedRows.clear() |
|
|
this.selectedRows.clear(); |
|
|
: this.dataSource.data.forEach((row) => this.selectedRows.select(row)); |
|
|
} else { |
|
|
|
|
|
this.dataSource.data.forEach((row) => { |
|
|
|
|
|
this.selectedRows.select(row); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.selectedActivities.emit(this.selectedRows.selected); |
|
|
this.selectedActivities.emit(this.selectedRows.selected); |
|
|
} |
|
|
} |
|
|