Add number of wheels column

pull/1/head
Max Ehrlicher-Schmidt 4 years ago
parent 52973b9ae4
commit 1673eeb475

@ -1,4 +1,5 @@
overwrite: true overwrite: true
watch: true
schema: "http://localhost:4000/graphql" schema: "http://localhost:4000/graphql"
documents: "src/app/graphqlOperations/**/*.graphql" documents: "src/app/graphqlOperations/**/*.graphql"
generates: generates:

@ -13,6 +13,7 @@ fragment CargoBikeFieldsMutable on CargoBike {
bikeWeight bikeWeight
} }
numberOfChildren numberOfChildren
numberOfWheels
security { security {
frameNumber frameNumber
adfcCoding adfcCoding

@ -74,6 +74,18 @@
</td> </td>
</ng-container> </ng-container>
<!-- NumberOfWheels Column -->
<ng-container matColumnDef="numberOfWheels">
<th mat-header-cell cdkDrag *matHeaderCellDef i18n="WheelCount">Räderanzahl</th>
<td mat-cell *matCellDef="let element">
<app-string-cell
[editable]="element.isGettingEdited"
[(value)]="element.numberOfWheels"
inputType="number"
></app-string-cell>
</td>
</ng-container>
<!-- Buttons Column --> <!-- Buttons Column -->
<ng-container matColumnDef="buttons" stickyEnd> <ng-container matColumnDef="buttons" stickyEnd>
<th mat-header-cell *matHeaderCellDef></th> <th mat-header-cell *matHeaderCellDef></th>

@ -25,6 +25,7 @@ export class BikesComponent {
'id', 'id',
'frameNumber', 'frameNumber',
'numberOfChildren', 'numberOfChildren',
'numberOfWheels',
'buttons', 'buttons',
]; ];

@ -909,7 +909,7 @@ export type GetCargoBikesQuery = (
export type CargoBikeFieldsMutableFragment = ( export type CargoBikeFieldsMutableFragment = (
{ __typename?: 'CargoBike' } { __typename?: 'CargoBike' }
& Pick<CargoBike, 'id' | 'group' | 'name' | 'lockedBy' | 'lockedUntil' | 'numberOfChildren'> & Pick<CargoBike, 'id' | 'group' | 'name' | 'lockedBy' | 'lockedUntil' | 'numberOfChildren' | 'numberOfWheels'>
& { insuranceData: ( & { insuranceData: (
{ __typename?: 'InsuranceData' } { __typename?: 'InsuranceData' }
& Pick<InsuranceData, 'billing' | 'hasFixedRate'> & Pick<InsuranceData, 'billing' | 'hasFixedRate'>
@ -957,6 +957,7 @@ export const CargoBikeFieldsMutableFragmentDoc = gql`
maxWeightTotal maxWeightTotal
} }
numberOfChildren numberOfChildren
numberOfWheels
security { security {
frameNumber frameNumber
adfcCoding adfcCoding

Loading…
Cancel
Save