|
@@ -632,6 +632,7 @@ const packages = ref([]);
|
|
|
const restoringDefaultDates = ref(false);
|
|
const restoringDefaultDates = ref(false);
|
|
|
const selectedStudent = ref(props.student);
|
|
const selectedStudent = ref(props.student);
|
|
|
const students = ref([]);
|
|
const students = ref([]);
|
|
|
|
|
+const studentSearchTerm = ref("");
|
|
|
const syncingFromDate = ref(false);
|
|
const syncingFromDate = ref(false);
|
|
|
const syncingFromDay = ref(false);
|
|
const syncingFromDay = ref(false);
|
|
|
const unitDetails = ref(store.selectedUnit ?? {});
|
|
const unitDetails = ref(store.selectedUnit ?? {});
|
|
@@ -980,6 +981,8 @@ const calculateEndTime = (startTime, durationMinutes = 120) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const filterStudents = (value, update) => {
|
|
const filterStudents = (value, update) => {
|
|
|
|
|
+ studentSearchTerm.value = value.trim();
|
|
|
|
|
+
|
|
|
update(() => {
|
|
update(() => {
|
|
|
const search = value.trim().toLocaleLowerCase("pt-BR");
|
|
const search = value.trim().toLocaleLowerCase("pt-BR");
|
|
|
|
|
|
|
@@ -1064,6 +1067,9 @@ const handleSave = async () => {
|
|
|
const openCreateStudent = () => {
|
|
const openCreateStudent = () => {
|
|
|
$q.dialog({
|
|
$q.dialog({
|
|
|
component: AddEditStudentDialog,
|
|
component: AddEditStudentDialog,
|
|
|
|
|
+ componentProps: {
|
|
|
|
|
+ initialName: studentSearchTerm.value || null,
|
|
|
|
|
+ },
|
|
|
}).onOk(async (createdStudent) => {
|
|
}).onOk(async (createdStudent) => {
|
|
|
const unitStudents = await getStudentsForSelect();
|
|
const unitStudents = await getStudentsForSelect();
|
|
|
|
|
|