Changes to UI and other stuff
This commit is contained in:
@@ -245,7 +245,9 @@ watch(
|
||||
);
|
||||
|
||||
// Auto-select sender when profile changes
|
||||
watch(form.values.profile_id, (profileId) => {
|
||||
watch(
|
||||
() => form.values.profile_id,
|
||||
(profileId) => {
|
||||
if (!profileId) {
|
||||
form.setFieldValue("sender_id", null);
|
||||
return;
|
||||
@@ -268,7 +270,8 @@ watch(form.values.profile_id, (profileId) => {
|
||||
} else {
|
||||
form.setFieldValue("sender_id", null);
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
// Reset sender if not available for selected profile
|
||||
watch(sendersForSelectedProfile, (list) => {
|
||||
@@ -355,15 +358,21 @@ const updateSmsFromSelection = async () => {
|
||||
}
|
||||
};
|
||||
|
||||
watch(form.values.template_id, () => {
|
||||
watch(
|
||||
() => form.values.template_id,
|
||||
() => {
|
||||
if (!form.values.template_id) return;
|
||||
updateSmsFromSelection();
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
watch(form.values.contract_uuid, () => {
|
||||
watch(
|
||||
() => form.values.contract_uuid,
|
||||
() => {
|
||||
if (!form.values.template_id) return;
|
||||
updateSmsFromSelection();
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
watch(pageSmsTemplates, (list) => {
|
||||
if (!Array.isArray(list)) return;
|
||||
|
||||
Reference in New Issue
Block a user