feat: Erstellungsformular für Gruppen hinzugefügt.
This commit is contained in:
parent
44b58c733f
commit
2add7f94e8
@ -0,0 +1 @@
|
||||
<p>group-form works!</p>
|
||||
@ -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<GroupFormComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [GroupFormComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(GroupFormComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -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 {
|
||||
|
||||
}
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user