member_webapp/@overflow/member/container/member-modify-password-container.component.ts

29 lines
861 B
TypeScript
Raw Normal View History

2018-05-28 11:16:00 +00:00
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
2018-05-28 10:28:26 +00:00
import { ActivatedRoute, Router } from '@angular/router';
2018-05-28 11:16:00 +00:00
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { select, Store } from '@ngrx/store';
import { Observable } from 'rxjs';
import * as MemberEntityStore from '../store/entity/member';
2018-05-28 10:28:26 +00:00
@Component({
2018-05-28 10:46:47 +00:00
selector: 'of-member-modify-password-container',
2018-05-28 11:16:00 +00:00
templateUrl: './member-modify-password-container.component.html',
2018-05-28 10:28:26 +00:00
})
export class MemberModifyPasswordContainerComponent implements OnInit {
2018-05-28 11:16:00 +00:00
@Input() token: string;
@Output() signin = new EventEmitter();
2018-05-28 10:28:26 +00:00
constructor(
2018-05-28 11:16:00 +00:00
private store: Store<any>,
2018-05-28 10:28:26 +00:00
) { }
ngOnInit() {
}
2018-05-28 11:16:00 +00:00
modifyPassword(info: {token: string, password: string, confirmPassword: string}) {
this.store.dispatch(new MemberEntityStore.ModifyPassword(info));
2018-05-28 10:28:26 +00:00
}
}