Skip to content
Snippets Groups Projects
Commit 90dbc35a authored by qbelu's avatar qbelu
Browse files
Merge branch 'main' of https://gitlab.univ-lorraine.fr/loisil2u/car-share into Beluche/ModifierUneOffreDeTrajet
parents 411199d6 ced48981
Branches
No related tags found
1 merge request!40Beluche/modifier une offre de trajet
...@@ -2280,7 +2280,7 @@ components: ...@@ -2280,7 +2280,7 @@ components:
properties: properties:
id: id:
type: integer type: integer
action: type:
type: string type: string
title: title:
type: string type: string
...@@ -2290,6 +2290,10 @@ components: ...@@ -2290,6 +2290,10 @@ components:
type: integer type: integer
travelId: travelId:
type: integer type: integer
senderId:
type: integer
bookingId:
type: integer
createdAt: createdAt:
type: string type: string
format: date-time format: date-time
...@@ -2305,9 +2309,9 @@ components: ...@@ -2305,9 +2309,9 @@ components:
context: context:
type: string type: string
lat: lat:
type: integer type: number
lng: lng:
type: integer type: number
travelId: travelId:
type: integer type: integer
date: date:
...@@ -2324,9 +2328,9 @@ components: ...@@ -2324,9 +2328,9 @@ components:
context: context:
type: string type: string
lat: lat:
type: integer type: number
lng: lng:
type: integer type: number
date: date:
type: string type: string
format: date-time format: date-time
...@@ -2341,13 +2345,13 @@ components: ...@@ -2341,13 +2345,13 @@ components:
type: object type: object
properties: properties:
note: note:
type: integer type: number
example: 1.5 example: 1.5
count: count:
type: object type: object
properties: properties:
note: note:
type: integer type: number
example: 2 example: 2
passenger: passenger:
type: object type: object
...@@ -2356,13 +2360,13 @@ components: ...@@ -2356,13 +2360,13 @@ components:
type: object type: object
properties: properties:
note: note:
type: integer type: number
example: null example: null
count: count:
type: object type: object
properties: properties:
note: note:
type: integer type: number
example: 0 example: 0
EvalutationTravel: EvalutationTravel:
type: array type: array
... ...
......
...@@ -87,7 +87,6 @@ export default { ...@@ -87,7 +87,6 @@ export default {
setData(data) { setData(data) {
if (this.m_data.length != data.length) this.setSelection(-1); if (this.m_data.length != data.length) this.setSelection(-1);
this.m_data = data; this.m_data = data;
this.showing = true;
}, },
setShowing(showing) { setShowing(showing) {
this.showing = showing; this.showing = showing;
... ...
......
...@@ -369,10 +369,13 @@ export default { ...@@ -369,10 +369,13 @@ export default {
}); });
}, },
reverseInputs() { reverseInputs() {
const start = this.startInput.value; const tmpCity = this.startCity;
const end = this.endInput.value; this.startCity = this.endCity;
this.startInput.value = end; this.endCity = tmpCity;
this.endInput.value = start;
const tmpSelect = this.startSelector.getData();
this.startSelector.setData(this.endSelector.getData());
this.endSelector.setData(tmpSelect);
}, },
log(msg, type = Log.INFO) { log(msg, type = Log.INFO) {
if (!this.logZone) return null; if (!this.logZone) return null;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment