family settings
This commit is contained in:
@@ -41,6 +41,9 @@ ionic generate page startscan
|
||||
ionic generate page suggest
|
||||
ionic generate page suggestdetails
|
||||
|
||||
ionic generate page familysettings
|
||||
|
||||
|
||||
ionic generate page locationmaps
|
||||
|
||||
ionic generate page playground
|
||||
|
||||
@@ -246,6 +246,11 @@ const routes: Routes = [
|
||||
path: 'addcredit',
|
||||
loadChildren: () => import('./accounts/addcredit/addcredit.module').then(m => m.AddcreditPageModule)
|
||||
},
|
||||
{
|
||||
path: 'familysettings',
|
||||
loadChildren: () => import('./pages/familysettings/familysettings.module').then(m => m.FamilysettingsPageModule)
|
||||
},
|
||||
|
||||
|
||||
];
|
||||
@NgModule({
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="ion-padding">
|
||||
<div class="flex">
|
||||
<ion-label class="bold_text">Family Account</ion-label>
|
||||
<ion-icon slot="end" name="settings-outline" color="primary"></ion-icon>
|
||||
<ion-icon slot="end" name="settings-outline" color="primary" (click)="familySettings()"></ion-icon>
|
||||
</div>
|
||||
|
||||
<!-- <div class="row">-->
|
||||
|
||||
@@ -39,6 +39,9 @@ export class FamilyPage implements OnInit {
|
||||
this.navctr.back();
|
||||
}
|
||||
|
||||
familySettings(){
|
||||
this.router.navigate(['familysettings']);
|
||||
}
|
||||
onMentor() {
|
||||
this.router.navigate(['mentor']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { FamilysettingsPage } from './familysettings.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: FamilysettingsPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class FamilysettingsPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { FamilysettingsPageRoutingModule } from './familysettings-routing.module';
|
||||
|
||||
import { FamilysettingsPage } from './familysettings.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
FamilysettingsPageRoutingModule
|
||||
],
|
||||
declarations: [FamilysettingsPage]
|
||||
})
|
||||
export class FamilysettingsPageModule {}
|
||||
@@ -0,0 +1,21 @@
|
||||
<ion-header mode="ios" class="ion-no-border">
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start" (click)="onBack()">
|
||||
<ion-button>
|
||||
<ion-icon name="arrow-back-outline"></ion-icon>
|
||||
</ion-button>
|
||||
</ion-buttons>
|
||||
<ion-buttons slot="end">
|
||||
<!-- <ion-button>-->
|
||||
<!-- <ion-icon name="ellipsis-horizontal-circle-outline"></ion-icon>-->
|
||||
<!-- </ion-button>-->
|
||||
</ion-buttons>
|
||||
<ion-title>Family Settings</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
|
||||
|
||||
<ion-content>
|
||||
|
||||
</ion-content>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { FamilysettingsPage } from './familysettings.page';
|
||||
|
||||
describe('FamilysettingsPage', () => {
|
||||
let component: FamilysettingsPage;
|
||||
let fixture: ComponentFixture<FamilysettingsPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ FamilysettingsPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FamilysettingsPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {NavController} from "@ionic/angular";
|
||||
import {Router} from "@angular/router";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-familysettings',
|
||||
templateUrl: './familysettings.page.html',
|
||||
styleUrls: ['./familysettings.page.scss'],
|
||||
})
|
||||
export class FamilysettingsPage implements OnInit {
|
||||
|
||||
constructor(
|
||||
private navctr: NavController,
|
||||
private router: Router,
|
||||
public sessionDataProviderService: SessionDataProviderService,
|
||||
private wrenchService: WrenchService
|
||||
) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
onBack() {
|
||||
this.navctr.back();
|
||||
}
|
||||
}
|
||||
+9
-6
@@ -32,12 +32,15 @@
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
||||
</head>
|
||||
|
||||
<body style="background-image: url('https://www.wrenchboard.com/assets/images/apps/wrench-app-main.jpg');
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
">
|
||||
<!--<body style="background-image: url('https://www.wrenchboard.com/assets/images/apps/wrench-app-main.jpg');-->
|
||||
<!-- background-position: center;-->
|
||||
<!-- background-repeat: no-repeat;-->
|
||||
<!-- background-size: contain;-->
|
||||
<!--">-->
|
||||
<!-- <app-root></app-root>-->
|
||||
<!--</body>-->
|
||||
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user