feat: Client Creation Service wurde erstellt und hinzugefügt. Das Angular-Projekt wurde für die Produktion aktualisiert, um die neuesten Änderungen zu integrieren und die Effizienz zu verbessern.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CreationService } from './creation.service';
|
||||
|
||||
describe('CreationService', () => {
|
||||
let service: CreationService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(CreationService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { GroupDirImportComponent } from '../components/group-dir-import/group-dir-import.component';
|
||||
import { ComponentType } from '@angular/cdk/portal';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class CreationService {
|
||||
|
||||
private component: ComponentType<T> = null
|
||||
|
||||
constructor(private dialog: MatDialog) { }
|
||||
|
||||
importGroup() {
|
||||
const dialogRef = this.dialog.open(GroupDirImportComponent, {
|
||||
width: "50vw"
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user