Changes to UI and other stuff

This commit is contained in:
Simon Pocrnjič
2025-11-20 18:11:43 +01:00
parent b7fa2d261b
commit 3b284fa4bd
87 changed files with 7872 additions and 2330 deletions
@@ -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;