This commit is contained in:
insanity 2018-01-31 15:18:58 +09:00
parent 971f3406ab
commit 198d9a24c6
5 changed files with 11 additions and 13 deletions

View File

@ -27,7 +27,7 @@ export const menus = [
},
{
'name': 'Probes',
'link': '/probe',
'link': '/probes',
'icon': 'indeterminate_check_box',
'chip': false,
'open': false,

View File

@ -1,7 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import {MemberService} from '../../services/member.service';
@Component({
selector: 'of-member-signin',
@ -19,7 +18,6 @@ export class SigninComponent implements OnInit {
constructor(
private router: Router,
private formBuilder: FormBuilder,
private memberService: MemberService
) { }
ngOnInit() {
@ -45,6 +43,5 @@ export class SigninComponent implements OnInit {
login() {
console.log('signin component login fnc');
this.memberService.signin();
}
}

View File

@ -2,15 +2,15 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SignupPageRoutingModule } from './signup-page-routing.module';
import { SignupPageComponent } from './signup-page.component';
import { MemberModule } from 'app/packages/member/member.module';
import { FlexLayoutModule } from '@angular/flex-layout';
import { SignupModule } from 'app/packages/member/component/signup/signup.module';
@NgModule({
imports: [
CommonModule,
SignupPageRoutingModule,
MemberModule,
FlexLayoutModule
FlexLayoutModule,
SignupModule
],
declarations: [
SignupPageComponent,

View File

@ -1,4 +1,6 @@
<div>
<of-sub-menubar [tabs]="tabs"></of-sub-menubar>
<router-outlet></router-outlet>
<div style="padding: 15px">
<router-outlet></router-outlet>
</div>
</div>

View File

@ -1,5 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Router, Route } from '@angular/router';
@Component({
selector: 'of-pages-probes',
@ -9,9 +8,9 @@ import { Router, Route } from '@angular/router';
export class ProbesPageComponent {
tabs = [
{ label: 'Probe', path: '/probe' },
{ label: 'Unauthorized', path: '/probe/noauth' },
{ label: 'Download', path: '/probe/download' },
{ label: 'Probe', path: '/probes' },
{ label: 'Unauthorized', path: '/probes/noauth' },
{ label: 'Download', path: '/probes/download' },
];
// tabs2 = [
@ -20,6 +19,6 @@ export class ProbesPageComponent {
// { label: 'History', path: '/probe/history' },
// ];
constructor(private router: Router) { }
constructor() { }
}