@@ -41,7 +44,9 @@
:text="textEmpty"
/>
-
+
+
+
-
+
{
flushSubscribers();
+ resetState();
});
const {
@@ -199,6 +208,22 @@ const {
text: textEmpty,
} = useTableEmpty({ dataList, filters, error, isLoading });
+const refresh = () => {
+ // https://webitel.atlassian.net/browse/WTEL-5711
+ // because 'selected' value needs cleaned
+
+ resetState();
+ loadData();
+};
+
+watch(() => filtersValue.value, (newValue, oldValue) => {
+ // https://webitel.atlassian.net/browse/WTEL-5744
+ // because 'selected' value needs cleaned when changing filters
+
+ if(!deepEqual(newValue, oldValue)) {
+ resetState();
+ }
+});