Update: Add frontend

This commit is contained in:
Yûki VACHOT 2021-12-08 08:36:27 +01:00
parent be5bfa1fb5
commit 3d3b5fc51e
76 changed files with 17761 additions and 1 deletions

View file

@ -0,0 +1,8 @@
<mat-dialog-content class="mat-typography">
Êtes-vous sûr de vouloir supprimer <i>{{data.person.login}}</i> ?
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button (click)="dialogRef.close()">Annuler</button>
<button mat-button (click)="dialogRef.close(true)" cdkFocusInitial>Valider</button>
</mat-dialog-actions>

View file

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PopupDeletePersonComponent } from './popup-delete-person.component';
describe('PopupDeletePersonComponent', () => {
let component: PopupDeletePersonComponent;
let fixture: ComponentFixture<PopupDeletePersonComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ PopupDeletePersonComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(PopupDeletePersonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,17 @@
import {Component, Inject} from '@angular/core';
import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
@Component({
selector: 'app-popup-delete-person',
templateUrl: './popup-delete-person.component.html',
styleUrls: ['./popup-delete-person.component.scss']
})
export class PopupDeletePersonComponent
{
constructor( public dialogRef: MatDialogRef<PopupDeletePersonComponent>,
@Inject(MAT_DIALOG_DATA) public data: any ) { }
}