ing
This commit is contained in:
parent
057e51fd73
commit
3298774cdb
|
@ -5,7 +5,7 @@ import {
|
||||||
Output,
|
Output,
|
||||||
EventEmitter,
|
EventEmitter,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, AbstractControl, FormControl } from '@angular/forms';
|
import { FormGroup, FormBuilder, Validators, AbstractControl, FormControl, ValidationErrors } from '@angular/forms';
|
||||||
import { Member } from '@overflow/commons-typescript/model/member';
|
import { Member } from '@overflow/commons-typescript/model/member';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -92,7 +92,7 @@ export class MemberSignupComponent implements OnInit, OnDestroy {
|
||||||
this.company = this.signupForm.controls['company'];
|
this.company = this.signupForm.controls['company'];
|
||||||
}
|
}
|
||||||
|
|
||||||
pwMatchValidator(control: FormControl): { [s: string]: boolean } {
|
pwMatchValidator(control: FormControl): ValidationErrors {
|
||||||
let pw;
|
let pw;
|
||||||
if (control.parent) {
|
if (control.parent) {
|
||||||
pw = control.parent.controls['password'].value;
|
pw = control.parent.controls['password'].value;
|
||||||
|
@ -100,6 +100,7 @@ export class MemberSignupComponent implements OnInit, OnDestroy {
|
||||||
if (control.value !== pw) {
|
if (control.value !== pw) {
|
||||||
return { notMatched: true };
|
return { notMatched: true };
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
signupFormSubmit() {
|
signupFormSubmit() {
|
||||||
|
|
|
@ -44,7 +44,7 @@ export class AppSubMenuComponent {
|
||||||
|
|
||||||
constructor(public app: PagesComponent) { }
|
constructor(public app: PagesComponent) { }
|
||||||
|
|
||||||
itemClick(event: Event, item: MenuItem, index: number) {
|
itemClick(event: Event, item: MenuItem, index: number): boolean {
|
||||||
if (this.root) {
|
if (this.root) {
|
||||||
this.app.menuHoverActive = !this.app.menuHoverActive;
|
this.app.menuHoverActive = !this.app.menuHoverActive;
|
||||||
}
|
}
|
||||||
|
@ -83,6 +83,7 @@ export class AppSubMenuComponent {
|
||||||
this.app.staticMenuMobileActive = false;
|
this.app.staticMenuMobileActive = false;
|
||||||
this.app.menuHoverActive = !this.app.menuHoverActive;
|
this.app.menuHoverActive = !this.app.menuHoverActive;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
onMouseEnter(index: number) {
|
onMouseEnter(index: number) {
|
||||||
|
|
|
@ -24,17 +24,25 @@
|
||||||
"@app/*": [
|
"@app/*": [
|
||||||
"src/app/*"
|
"src/app/*"
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
// /* Additional Checks */
|
/* Strict Type-Checking Options */
|
||||||
|
// "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
||||||
|
// "strictNullChecks": true /* Enable strict null checks. */,
|
||||||
|
// "strictFunctionTypes": true /* Enable strict checking of function types. */,
|
||||||
|
"strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
|
||||||
|
// "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
|
||||||
|
// "alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
|
||||||
|
|
||||||
|
/* Additional Checks */
|
||||||
// "noUnusedLocals": true /* Report errors on unused locals. */,
|
// "noUnusedLocals": true /* Report errors on unused locals. */,
|
||||||
// "noUnusedParameters": true /* Report errors on unused parameters. */,
|
// "noUnusedParameters": true /* Report errors on unused parameters. */,
|
||||||
// "noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
||||||
// "noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
|
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
|
||||||
|
|
||||||
// /* Debugging Options */
|
/* Debugging Options */
|
||||||
// "traceResolution": false /* Report module resolution log messages. */,
|
"traceResolution": false /* Report module resolution log messages. */,
|
||||||
// "listEmittedFiles": false /* Print names of generated files part of the compilation. */,
|
"listEmittedFiles": false /* Print names of generated files part of the compilation. */,
|
||||||
// "listFiles": false /* Print names of files part of the compilation. */,
|
"listFiles": false /* Print names of files part of the compilation. */,
|
||||||
// "pretty": true /* Stylize errors and messages using color and context. */,
|
"pretty": true /* Stylize errors and messages using color and context. */,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user