refactor
This commit is contained in:
@@ -9,7 +9,7 @@ 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';
|
||||
import { AgDeleteKeyComponent } from '../../shared/ag-grid/components/ag-delete-key/ag-delete-key.component';
|
||||
import { AgKeyActionsComponent } from '../../shared/ag-grid/components/ag-key-actions/ag-key-actions.component';
|
||||
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';
|
||||
@@ -88,7 +88,8 @@ export class KeysComponent {
|
||||
colId: 'actions'
|
||||
, headerName: 'Aktionen'
|
||||
, width: 140
|
||||
, cellRenderer: AgDeleteKeyComponent
|
||||
, cellRenderer: AgKeyActionsComponent
|
||||
, sortable: false
|
||||
// , onCellClicked: (event) => { this.deleteKey(event.data.id)}
|
||||
,valueFormatter: (data: any) => { return data; },
|
||||
}
|
||||
|
||||
@@ -14,10 +14,10 @@ import { CreateKeyComponent } from '../../../../modules/keys/create/create.compo
|
||||
@Component({
|
||||
selector: 'app-ag-delete-key',
|
||||
imports: [MatDialogModule, MatTooltipModule],
|
||||
templateUrl: './ag-delete-key.component.html',
|
||||
styleUrl: './ag-delete-key.component.scss'
|
||||
templateUrl: './ag-key-actions.component.html',
|
||||
styleUrl: './ag-key-actions.component.scss'
|
||||
})
|
||||
export class AgDeleteKeyComponent implements ICellRendererAngularComp {
|
||||
export class AgKeyActionsComponent implements ICellRendererAngularComp {
|
||||
key!: IKey;
|
||||
params!: ICellRendererParams<any, any, any>;
|
||||
|
||||
Reference in New Issue
Block a user