1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var core_1 = require("@angular/core");
|
4 | var forms_1 = require("@angular/forms");
|
5 | var ChangePasswordComponent = (function () {
|
6 | function ChangePasswordComponent() {
|
7 | this.submited = new core_1.EventEmitter();
|
8 | }
|
9 | ChangePasswordComponent.prototype.ngOnInit = function () {
|
10 | };
|
11 | ChangePasswordComponent.prototype.submit = function () {
|
12 | };
|
13 | ChangePasswordComponent.prototype.changePassword = function () {
|
14 | if (!this.formGroup.valid)
|
15 | return;
|
16 | this.submited.emit(this.formGroup.value);
|
17 | };
|
18 | ChangePasswordComponent.decorators = [
|
19 | { type: core_1.Component, args: [{
|
20 | selector: 'user-change-password',
|
21 | template: "<div fxFlex=\"450px\"> <form [formGroup]=\"formGroup\" (ngSubmit)=\"changePassword()\" fxLayout=\"column\"> <mat-card> <mat-card-content> <mat-form-field fxFlexFill> <input type=\"password\" matInput placeholder=\"\u06A9\u0644\u0645\u0647 \u0639\u0628\u0648\u0631\" formControlName=\"Password\"> </mat-form-field> <mat-form-field fxFlexFill> <input type=\"password\" matInput placeholder=\"\u062A\u06A9\u0631\u0627\u0631 \u06A9\u0644\u0645\u0647 \u0639\u0628\u0648\u0631\" formControlName=\"Confirm\"> </mat-form-field> </mat-card-content> <mat-card-actions fxLayoutAlign=\"center center\"> <button fxFlex=\"nogrow\" type=\"submit\" mat-raised-button color=\"primary\">\u062A\u063A\u06CC\u06CC\u0631 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631</button> <button fxFlex=\"nogrow\" type=\"button\" routerLink=\"/user/panel\" mat-raised-button>\u0628\u0627\u0632\u06AF\u0634\u062A</button> </mat-card-actions> </mat-card> </form> </div>",
|
22 | styles: [""]
|
23 | },] },
|
24 | ];
|
25 |
|
26 | ChangePasswordComponent.ctorParameters = function () { return []; };
|
27 | ChangePasswordComponent.propDecorators = {
|
28 | "formGroup": [{ type: core_1.Input },],
|
29 | "submited": [{ type: core_1.Output },],
|
30 | };
|
31 | return ChangePasswordComponent;
|
32 | }());
|
33 | exports.ChangePasswordComponent = ChangePasswordComponent;
|
34 |
|
\ | No newline at end of file |