도메인삭제 알림

This commit is contained in:
이담 정 2022-08-19 10:16:14 +00:00
parent b3b4662b21
commit 1c9b0b86b7
2 changed files with 37 additions and 1 deletions

View File

@ -145,7 +145,11 @@
style="text-align: center" style="text-align: center"
> >
<div class="hidden sm:block truncate"> <div class="hidden sm:block truncate">
<button mat-flat-button [color]="'primary'"> <button
mat-flat-button
[color]="'primary'"
(click)="__onClickRemoveBtn($event, basicSetting.id)"
>
도메인삭제 도메인삭제
</button> </button>
</div> </div>

View File

@ -92,6 +92,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
private _unsubscribeAll: Subject<any> = new Subject<any>(); private _unsubscribeAll: Subject<any> = new Subject<any>();
configForm!: FormGroup;
/** /**
* Constructor * Constructor
*/ */
@ -120,6 +121,28 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// Mark for check // Mark for check
this._changeDetectorRef.markForCheck(); this._changeDetectorRef.markForCheck();
}); */ }); */
this.configForm = this._formBuilder.group({
title: '알림',
message:
'정말로 삭제하시겠습니까? <span class="font-medium">삭제!</span>',
icon: this._formBuilder.group({
show: true,
name: 'heroicons_outline:exclamation',
color: 'warn',
}),
actions: this._formBuilder.group({
confirm: this._formBuilder.group({
show: true,
label: '삭제',
color: 'warn',
}),
cancel: this._formBuilder.group({
show: true,
label: '취소',
}),
}),
dismissible: true,
});
this._activatedRoute.data.subscribe((data) => { this._activatedRoute.data.subscribe((data) => {
let listSitesResult: ListSitesResponse.Result = data['listSites']; let listSitesResult: ListSitesResponse.Result = data['listSites'];
@ -154,6 +177,15 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
// @ Private methods // @ Private methods
// ----------------------------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------------------------
__onClickRemoveBtn(event: MouseEvent, id: string): void {
// Open the dialog and save the reference of it
const dialogRef = this._fuseConfirmationService.open(this.configForm.value);
// Subscribe to afterClosed from the dialog reference
dialogRef.afterClosed().subscribe((result) => {
console.log(result);
});
}
/** /**
* Create product * Create product
*/ */