feat(group-update-form.component): Initialisiert
- Zur Gruppenkomponente als Popup-Seite nach Doppelklick auf Zeilenereignis hinzugefügt
This commit is contained in:
parent
5f4a8e373c
commit
1b5fa1f52c
@ -0,0 +1 @@
|
||||
<p>group-update-form works!</p>
|
||||
@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { GroupUpdateFormComponent } from './group-update-form.component';
|
||||
|
||||
describe('GroupUpdateFormComponent', () => {
|
||||
let component: GroupUpdateFormComponent;
|
||||
let fixture: ComponentFixture<GroupUpdateFormComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [GroupUpdateFormComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(GroupUpdateFormComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,12 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-group-update-form',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './group-update-form.component.html',
|
||||
styleUrl: './group-update-form.component.scss'
|
||||
})
|
||||
export class GroupUpdateFormComponent {
|
||||
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
import { AfterViewInit, Component, ViewChild } from '@angular/core';
|
||||
import { AfterViewInit, Component, ViewChild, inject } from '@angular/core';
|
||||
import { GroupTableComponent } from '../../components/tables/group-table/group-table.component';
|
||||
import { UserTableComponent } from '../../components/tables/user-table/user-table.component';
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
@ -9,6 +9,8 @@ import { Group } from '../../models/user-management.api.models';
|
||||
import { firstValueFrom, forkJoin } from 'rxjs';
|
||||
import Swal from 'sweetalert2';
|
||||
import { env } from '../../../environments/environment';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { GroupUpdateFormComponent } from '../../components/forms/group-update-form/group-update-form.component';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
@ -35,6 +37,8 @@ export class GroupComponent extends BasePageComponent implements AfterViewInit {
|
||||
|
||||
private sGroup: Group | null = null;
|
||||
|
||||
private readonly dialog: MatDialog = inject(MatDialog);
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
this.buttonVisibilityService.setVisibleOnly(this.refreshService, this.creationService, this.updateService)
|
||||
this.refreshService.removeAll()
|
||||
@ -99,11 +103,10 @@ export class GroupComponent extends BasePageComponent implements AfterViewInit {
|
||||
return env.columnNames.group.complete
|
||||
}
|
||||
|
||||
openUpdateSheet(user: Group): void {
|
||||
/* this.dialog.open(UserUpdateFormComponent, {
|
||||
openUpdateSheet(group: Group): void {
|
||||
this.dialog.open(GroupUpdateFormComponent, {
|
||||
width: "50rem",
|
||||
data: user
|
||||
}); */
|
||||
alert(JSON.stringify(user))
|
||||
data: group
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -10,7 +10,7 @@ import { User } from '../../models/user-management.api.models';
|
||||
import { firstValueFrom, forkJoin } from 'rxjs';
|
||||
import Swal from 'sweetalert2';
|
||||
import { env } from '../../../environments/environment'
|
||||
import { MatBottomSheet, MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
||||
import { MatBottomSheetModule } from '@angular/material/bottom-sheet';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { UserUpdateFormComponent } from '../../components/forms/user-update-form/user-update-form.component';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user