- updated templates of application evaluation;
This commit is contained in:
@@ -695,11 +695,11 @@ const DomandaEditInstructorManager = () => {
|
||||
}
|
||||
}
|
||||
|
||||
AppointmentService.createAppointment(id, submitData, getAppointemntCallback, errGetAppointemntCallback);
|
||||
AppointmentService.createAppointment(id, submitData, getAppointmentCallback, errGetAppointemntCallback);
|
||||
}
|
||||
}
|
||||
|
||||
const getAppointemntCallback = (data) => {
|
||||
const getAppointmentCallback = (data) => {
|
||||
if (data.status === 'SUCCESS') {
|
||||
if (toast.current && data.message) {
|
||||
toast.current.show({
|
||||
@@ -708,6 +708,12 @@ const DomandaEditInstructorManager = () => {
|
||||
detail: data.message
|
||||
});
|
||||
}
|
||||
if (data.data.appointmentId) {
|
||||
setData({
|
||||
...data,
|
||||
appointmentId: data.data.appointmentId
|
||||
});
|
||||
}
|
||||
}
|
||||
setIsVisibleAppointmentDialog(false);
|
||||
storeSet.main.unsetAsyncRequest();
|
||||
|
||||
@@ -697,11 +697,11 @@ const DomandaEditPreInstructor = () => {
|
||||
}
|
||||
}
|
||||
|
||||
AppointmentService.createAppointment(id, submitData, getAppointemntCallback, errGetAppointemntCallback);
|
||||
AppointmentService.createAppointment(id, submitData, getAppointmentCallback, errGetAppointemntCallback);
|
||||
}
|
||||
}
|
||||
|
||||
const getAppointemntCallback = (data) => {
|
||||
const getAppointmentCallback = (data) => {
|
||||
if (data.status === 'SUCCESS') {
|
||||
if (toast.current && data.message) {
|
||||
toast.current.show({
|
||||
@@ -710,6 +710,12 @@ const DomandaEditPreInstructor = () => {
|
||||
detail: data.message
|
||||
});
|
||||
}
|
||||
if (data.data.appointmentId) {
|
||||
setData({
|
||||
...data,
|
||||
appointmentId: data.data.appointmentId
|
||||
});
|
||||
}
|
||||
}
|
||||
setIsVisibleAppointmentDialog(false);
|
||||
storeSet.main.unsetAsyncRequest();
|
||||
|
||||
Reference in New Issue
Block a user