Commit 8af33ecb authored by David Burke's avatar David Burke

Added detail component

parent 286d16bf
Pipeline #37838502 failed with stages
in 4 minutes and 46 seconds
......@@ -5,8 +5,11 @@ import { Routes } from "@angular/router";
import { LoginContainer } from "./account/login/login.container";
import { RegisterContainer } from "./account/register/register.container";
import { SecretListContainer } from "./list/list.container";
import { SecretDetailComponent } from "./list/detail.component";
import { SecretNewComponent } from "./list/new.component.tns";
import { AlreadyLoggedInGuard, LoggedInGuard } from "./guards";
import { ConfirmEmailContainer } from "./account/confirm-email";
import { ConfirmEmailGuard } from "./account/confirm-email/confirm-email.guard";
export const routes: Routes = [
{
......@@ -32,16 +35,29 @@ export const routes: Routes = [
showNavBar: false
}
},
{
path: "confirm-email",
component: ConfirmEmailContainer,
canActivate: [ConfirmEmailGuard],
data: {
title: "Confirm Email"
}
},
{
path: "list",
component: SecretListContainer,
canActivate: [LoggedInGuard]
},
{
path: "list/:id",
component: SecretDetailComponent,
canActivate: [LoggedInGuard]
},
{
path: "list/new",
component: SecretNewComponent,
canActivate: [LoggedInGuard],
},
canActivate: [LoggedInGuard]
}
];
@NgModule({
......
<ns-action-bar-container title="Manage Password"></ns-action-bar-container>
<StackLayout>
<secret-form-container></secret-form-container>
</StackLayout>
\ No newline at end of file
import { Component } from "@angular/core";
/** This is only used in phone layouts
* It doesn't follow the general smart/dumb comoponent split because
* there is no web version of this - so we just combine it.
*/
@Component({
selector: "secret-detail-component",
moduleId: module.id,
templateUrl: "./detail.component.html",
})
export class SecretDetailComponent {
constructor(
) {}
}
......@@ -9,6 +9,7 @@ import { reducers } from "./list.reducer";
import { SecretFormEffects } from "./secret-form/secret-form.effects";
import { SecretListContainer } from "./list.container";
import { SecretListComponent } from "./list.component";
import { SecretDetailComponent } from "./detail.component";
import { SecretNewComponent } from "./new.component.tns";
import { SecretFormContainer } from "./secret-form/secret-form.container";
import { SecretFormComponent } from "./secret-form/secret-form.component";
......@@ -19,7 +20,8 @@ export const COMPONENTS = [
SecretListComponent,
SecretNewComponent,
SecretFormContainer,
SecretFormComponent
SecretFormComponent,
SecretDetailComponent
];
@NgModule({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment