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

@ -112,7 +112,7 @@ export class AdminDataPageComponent implements OnInit {
deleteItem(user : User) { deleteItem(user : User) {
if (user.id === this.authService.getCurrentUserValue.user.id){ 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; return;
} }
const dialogRef = this.dialog.open(DeleteDialogComponent, { const dialogRef = this.dialog.open(DeleteDialogComponent, {

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

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

Loading…
Cancel
Save