mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Forgot Password
This commit is contained in:
24
lib/core/login/components/recover-password-dialog.service.ts
Normal file
24
lib/core/login/components/recover-password-dialog.service.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright © 2005 - 2021 Alfresco Software, Ltd. All rights reserved.
|
||||
*
|
||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
||||
* pursuant to a written agreement and any use of this program without such an
|
||||
* agreement is prohibited.
|
||||
*/
|
||||
|
||||
import { Injectable, TemplateRef } from '@angular/core';
|
||||
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||
import { ComponentType } from '@angular/cdk/portal';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class RecoverPasswordDialogService {
|
||||
constructor(private dialog: MatDialog) { }
|
||||
|
||||
showDialog<T>(dialog: ComponentType<T> | TemplateRef<T>, options = {}): MatDialogRef<T, boolean> {
|
||||
return this.dialog.open<T>(dialog, {
|
||||
height: '35%',
|
||||
minWidth: '30%',
|
||||
...options
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user