From 2add7f94e89edbe474faa7207f222159010c1976 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Thu, 1 Aug 2024 10:54:06 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Erstellungsformular=20f=C3=BCr=20Gruppe?= =?UTF-8?q?n=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../group-form/group-form.component.html | 1 + .../group-form/group-form.component.scss | 0 .../group-form/group-form.component.spec.ts | 23 +++++++++++++++++++ .../forms/group-form/group-form.component.ts | 12 ++++++++++ .../app/components/group/group.component.ts | 6 ++++- 5 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.html create mode 100644 DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.scss create mode 100644 DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.spec.ts create mode 100644 DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.html b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.html new file mode 100644 index 0000000..0b344ca --- /dev/null +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.html @@ -0,0 +1 @@ +

group-form works!

diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.scss b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.spec.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.spec.ts new file mode 100644 index 0000000..d379c16 --- /dev/null +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { GroupFormComponent } from './group-form.component'; + +describe('GroupFormComponent', () => { + let component: GroupFormComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [GroupFormComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(GroupFormComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts new file mode 100644 index 0000000..f327820 --- /dev/null +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/forms/group-form/group-form.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-group-form', + standalone: true, + imports: [], + templateUrl: './group-form.component.html', + styleUrl: './group-form.component.scss' +}) +export class GroupFormComponent { + +} diff --git a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/group/group.component.ts b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/group/group.component.ts index 6307176..5e8c036 100644 --- a/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/group/group.component.ts +++ b/DigitalData.UserManager.API/ClientApp/user_manager_ui/src/app/components/group/group.component.ts @@ -4,6 +4,8 @@ import { UserTableComponent } from '../../components/tables/user-table/user-tabl import { RefreshService } from '../../services/refresh.service'; import { MatTabsModule } from '@angular/material/tabs'; import { GuiSelectedRow } from '@generic-ui/ngx-grid'; +import { CreationService } from '../../services/creation.service'; +import { GroupFormComponent } from '../forms/group-form/group-form.component'; @Component({ standalone: true, @@ -15,7 +17,7 @@ import { GuiSelectedRow } from '@generic-ui/ngx-grid'; export class GroupComponent implements AfterViewInit { initWithoutData = () => { } private sGroupId = null; - constructor(private refreshService: RefreshService) { } + constructor(private refreshService: RefreshService, private creationService: CreationService) { } ngAfterViewInit(): void { this.refreshService.removeAll() @@ -24,6 +26,8 @@ export class GroupComponent implements AfterViewInit { if(this.sGroupId) this.userTable.fetchDataByGroupId(this.sGroupId); }); + this.creationService.component = GroupFormComponent + this.creationService.openDialog(); } @ViewChild("groupTable") groupTable!: GroupTableComponent;