- Disabled default Car being ID:2
- Showing Message if User has no default car
This commit is contained in:
@@ -384,7 +384,7 @@ class WarehouseShippingNoteController extends TTCrud {
|
|||||||
die(json_encode(['success' => true, 'id' => $timerecordingCar->id]));
|
die(json_encode(['success' => true, 'id' => $timerecordingCar->id]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
die(json_encode(['success' => true, 'id' => 2]));
|
die(json_encode(['success' => true, 'status' => 'USER_NO_CAR']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,10 @@ Vue.component('warehouse-shipping-note-modal-hours-entry', {
|
|||||||
},
|
},
|
||||||
async updateCarId() {
|
async updateCarId() {
|
||||||
const response = await axios.get(window.TT_CONFIG["BASE_PATH"] + '/WarehouseShippingNote/timerecordingCarForUser?userId=' + this.userId);
|
const response = await axios.get(window.TT_CONFIG["BASE_PATH"] + '/WarehouseShippingNote/timerecordingCarForUser?userId=' + this.userId);
|
||||||
|
if (response.data.status === 'USER_NO_CAR') {
|
||||||
|
this.window.notify('info', 'Kein zugewiesenes Fahrzeug gefunden');
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.carId = response.data.id;
|
this.carId = response.data.id;
|
||||||
},
|
},
|
||||||
updateDate() {
|
updateDate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user