Chat settings in Super Admin and changing the chat title and position.

This commit is contained in:
2026-09-29 14:45:19 +03:30
parent 125976f3eb
commit 66af7e577c
14 changed files with 332 additions and 269 deletions
+8 -4
View File
@@ -13,7 +13,7 @@ const props = defineProps<{
const emit = defineEmits<{
start: [];
done: [ImportContactsResult];
done: [ImportContactsResult | Record<string, unknown>];
fail: [string];
settled: [];
}>();
@@ -64,9 +64,13 @@ async function postImport(file: File, map?: Record<string, string>) {
if (map && Object.values(map).some(Boolean)) {
form.append('mapping', JSON.stringify(map));
}
const { data } = await api.post<ImportContactsResult>(props.importPath, form, {
headers: { 'Content-Type': undefined },
});
const { data } = await api.post<ImportContactsResult | Record<string, unknown>>(
props.importPath,
form,
{
headers: { 'Content-Type': undefined },
},
);
return data;
}