[#3000] disallowed relations to views from non-view collections

This commit is contained in:
Gani Georgiev
2023-07-27 15:57:20 +03:00
parent e6a41773ca
commit 854796a8dd
36 changed files with 354 additions and 225 deletions
@@ -27,12 +27,13 @@
}
$: if (needLoad(list, value)) {
isLoading = true;
// Move the load function to the end of the execution queue.
//
// It helps reducing the layout shifts (the relation field has fixed height skeleton loader)
// and allows the other form fields to load sooner.
clearTimeout(loadTimeoutId);
loadTimeoutId = setTimeout(load, 0);
loadTimeoutId = setTimeout(load, 50);
}
function needLoad() {
@@ -91,6 +92,10 @@
}
list = list;
// ensure that any record that was deleted during the request
// is also removed from the relation value
listToValue();
} catch (err) {
ApiClient.error(err);
}