From 1673eeb4756b889f004fcbe358f7dc95deb48e6d Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Wed, 23 Sep 2020 22:37:11 +0200 Subject: [PATCH] Add number of wheels column --- codegen.yml | 1 + .../graphqlOperations/fragments/bikeFragment.graphql | 1 + src/app/pages/tables/bikes/bikes.component.html | 12 ++++++++++++ src/app/pages/tables/bikes/bikes.component.ts | 1 + src/generated/graphql.ts | 3 ++- 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/codegen.yml b/codegen.yml index dfbd037..8747eef 100644 --- a/codegen.yml +++ b/codegen.yml @@ -1,4 +1,5 @@ overwrite: true +watch: true schema: "http://localhost:4000/graphql" documents: "src/app/graphqlOperations/**/*.graphql" generates: diff --git a/src/app/graphqlOperations/fragments/bikeFragment.graphql b/src/app/graphqlOperations/fragments/bikeFragment.graphql index aa22522..5da4b7a 100644 --- a/src/app/graphqlOperations/fragments/bikeFragment.graphql +++ b/src/app/graphqlOperations/fragments/bikeFragment.graphql @@ -13,6 +13,7 @@ fragment CargoBikeFieldsMutable on CargoBike { bikeWeight } numberOfChildren + numberOfWheels security { frameNumber adfcCoding diff --git a/src/app/pages/tables/bikes/bikes.component.html b/src/app/pages/tables/bikes/bikes.component.html index f14e5b5..cebd5b2 100644 --- a/src/app/pages/tables/bikes/bikes.component.html +++ b/src/app/pages/tables/bikes/bikes.component.html @@ -74,6 +74,18 @@ + + + Räderanzahl + + + + + diff --git a/src/app/pages/tables/bikes/bikes.component.ts b/src/app/pages/tables/bikes/bikes.component.ts index 15a2da8..37c7c59 100644 --- a/src/app/pages/tables/bikes/bikes.component.ts +++ b/src/app/pages/tables/bikes/bikes.component.ts @@ -25,6 +25,7 @@ export class BikesComponent { 'id', 'frameNumber', 'numberOfChildren', + 'numberOfWheels', 'buttons', ]; diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index 3bfd8d7..e6b6648 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -909,7 +909,7 @@ export type GetCargoBikesQuery = ( export type CargoBikeFieldsMutableFragment = ( { __typename?: 'CargoBike' } - & Pick + & Pick & { insuranceData: ( { __typename?: 'InsuranceData' } & Pick @@ -957,6 +957,7 @@ export const CargoBikeFieldsMutableFragmentDoc = gql` maxWeightTotal } numberOfChildren + numberOfWheels security { frameNumber adfcCoding