mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							52 lines
						
					
					
						
							1.6 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							52 lines
						
					
					
						
							1.6 KiB
						
					
					
				| import { GfDialogFooterComponent } from '@ghostfolio/client/components/dialog-footer/dialog-footer.component'; | |
| import { GfDialogHeaderComponent } from '@ghostfolio/client/components/dialog-header/dialog-header.component'; | |
| import { GfValueComponent } from '@ghostfolio/ui/value'; | |
| 
 | |
| import { CommonModule } from '@angular/common'; | |
| import { | |
|   ChangeDetectionStrategy, | |
|   Component, | |
|   CUSTOM_ELEMENTS_SCHEMA, | |
|   Inject, | |
|   OnDestroy | |
| } from '@angular/core'; | |
| import { MatButtonModule } from '@angular/material/button'; | |
| import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | |
| import { MatDialogModule } from '@angular/material/dialog'; | |
| import { Subject } from 'rxjs'; | |
| 
 | |
| import { UserDetailDialogParams } from './interfaces/interfaces'; | |
| 
 | |
| @Component({ | |
|   changeDetection: ChangeDetectionStrategy.OnPush, | |
|   host: { class: 'd-flex flex-column h-100' }, | |
|   imports: [ | |
|     CommonModule, | |
|     GfDialogFooterComponent, | |
|     GfDialogHeaderComponent, | |
|     GfValueComponent, | |
|     MatButtonModule, | |
|     MatDialogModule | |
|   ], | |
|   schemas: [CUSTOM_ELEMENTS_SCHEMA], | |
|   selector: 'gf-user-detail-dialog', | |
|   styleUrls: ['./user-detail-dialog.component.scss'], | |
|   templateUrl: './user-detail-dialog.html' | |
| }) | |
| export class GfUserDetailDialogComponent implements OnDestroy { | |
|   private unsubscribeSubject = new Subject<void>(); | |
| 
 | |
|   public constructor( | |
|     @Inject(MAT_DIALOG_DATA) public data: UserDetailDialogParams, | |
|     public dialogRef: MatDialogRef<GfUserDetailDialogComponent> | |
|   ) {} | |
| 
 | |
|   public onClose() { | |
|     this.dialogRef.close(); | |
|   } | |
| 
 | |
|   public ngOnDestroy() { | |
|     this.unsubscribeSubject.next(); | |
|     this.unsubscribeSubject.complete(); | |
|   } | |
| }
 | |
| 
 |