master
Max Ehrlicher-Schmidt 4 years ago
parent a74c9466c6
commit c9cd9cad3c

@ -112,7 +112,7 @@ export class AdminDataPageComponent implements OnInit {
deleteItem(user : User) {
if (user.id === this.authService.getCurrentUserValue.user.id){
this.snackBarService.openSnackBar("Du kannst dich nicht selbst löschen","Ok Im an Idiot", true);
this.snackBarService.openSnackBar("Du kannst dich nicht selbst löschen","Ok", true);
return;
}
const dialogRef = this.dialog.open(DeleteDialogComponent, {

@ -161,7 +161,7 @@ export class CellComponent implements AfterViewInit {
this.value = [];
}
// Add element
if ((value || '').trim()) {
if ((value ?? '').trim()) {
this.value.push(value.trim());
}
// Reset the input value

@ -27,14 +27,14 @@ export class DownloadService {
cellData = cellData.join('", "');
} else if (column.type === 'NumRange') {
cellData =
(row[column.dataPath + '.min'] || '') +
(row[column.dataPath + '.min'] ?? '') +
' bis ' +
(row[column.dataPath + '.max'] || '');
(row[column.dataPath + '.max'] ?? '');
} else if (column.type === 'DateRange') {
cellData =
(row[column.dataPath + '.from'] || '') +
(row[column.dataPath + '.from'] ?? '') +
' bis ' +
(row[column.dataPath + '.to'] || '');
(row[column.dataPath + '.to'] ?? '');
}
return '"' + (cellData ?? '').toString().replace(/"/g, "''") + '"';
});

Loading…
Cancel
Save