cleaning
This commit is contained in:
@@ -10,4 +10,5 @@ export interface ICylinder {
|
||||
system: any;
|
||||
keys: IKey[];
|
||||
keyCount: number;
|
||||
digital: boolean;
|
||||
}
|
||||
@@ -10,4 +10,5 @@ export interface IKey {
|
||||
nr: number;
|
||||
deletedAt?: string;
|
||||
keyLost: Date | null;
|
||||
digital: boolean;
|
||||
}
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { AG_GRID_LOCALE_DE } from '@ag-grid-community/locale';
|
||||
import { AgGridAngular } from 'ag-grid-angular';
|
||||
import { GridOptions,GridApi, GridReadyEvent, CellEditingStoppedEvent, ICellEditorParams, FilterActionParams, FilterAction, themeQuartz, Theme, ThemeDefaultParams, AgGridEvent, CellClickedEvent, CellDoubleClickedEvent, ColDef } from 'ag-grid-community';
|
||||
import { GridOptions,GridApi, GridReadyEvent, CellEditingStoppedEvent, CellDoubleClickedEvent } from 'ag-grid-community';
|
||||
import { DatePipe } from '@angular/common';
|
||||
import { ApiService } from '../../shared/api.service';
|
||||
import { IKey } from '../../model/interface/key.interface';
|
||||
import { HotToastService } from '@ngxpert/hot-toast';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
|
||||
import { CreateKeyComponent } from './create/create.component';
|
||||
@@ -13,14 +12,12 @@ import { AgKeyActionsComponent } from '../../shared/ag-grid/components/ag-key-ac
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { ArchiveComponent } from './components/archive/archive.component';
|
||||
import { AgLoadingComponent } from '../../shared/ag-grid/components/ag-loading/ag-loading.component';
|
||||
import { map, of } from 'rxjs';
|
||||
import { ICylinder } from '../../model/interface/cylinder.interface';
|
||||
import { LostKeysComponent } from './components/lost-keys/lost-keys.component';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { SelectKeyCylinderComponent } from './create/select-key-cylinder/select-key-cylinder.component';
|
||||
import { ActivatedRoute, Route } from '@angular/router';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ModuleRegistry } from 'ag-grid-community';
|
||||
import { AgGridService } from '../../shared/ag-grid/ag-grid.service';
|
||||
import { AgGridContainerComponent } from '../../shared/ag-grid/components/ag-grid-container/ag-grid-container.component';
|
||||
|
||||
@Component({
|
||||
@@ -33,14 +30,9 @@ import { AgGridContainerComponent } from '../../shared/ag-grid/components/ag-gri
|
||||
export class KeysComponent extends AgGridContainerComponent {
|
||||
private api: ApiService = inject(ApiService);
|
||||
private datePipe = inject(DatePipe);
|
||||
private toast: HotToastService = inject(HotToastService);
|
||||
private dialog: MatDialog = inject(MatDialog);
|
||||
private route: ActivatedRoute = inject(ActivatedRoute);
|
||||
|
||||
|
||||
|
||||
// cylinders: any[] = [];
|
||||
|
||||
gridApi!: GridApi;
|
||||
|
||||
gridOptions: GridOptions = {
|
||||
@@ -101,13 +93,7 @@ export class KeysComponent extends AgGridContainerComponent {
|
||||
pagination: true,
|
||||
}
|
||||
|
||||
editKey(id: string) {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
|
||||
editKey(id: string) { }
|
||||
|
||||
private setFilterToParams() {
|
||||
const params = this.route.snapshot.queryParams;
|
||||
|
||||
Reference in New Issue
Block a user