adminforth 1.5.5-next.0 → 1.5.5-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -183,6 +183,9 @@ async function getList() {
183
183
  return row;
184
184
  });
185
185
  totalRows.value = data.total;
186
+
187
+ // if checkboxes have items which are not in current data, remove them
188
+ checkboxes.value = checkboxes.value.filter(pk => rows.value!.some(r => r._primaryKeyValue === pk));
186
189
  await nextTick();
187
190
  return {}
188
191
  }
@@ -330,7 +333,7 @@ async function init() {
330
333
  page.value = parseInt(route.query.page);
331
334
  }
332
335
 
333
- // await getList(); - Not needed here, watch will trigger it
336
+ // getList(); - Not needed here, watch will trigger it
334
337
  columnsMinMax.value = await callAdminForthApi({
335
338
  path: '/get_min_max_for_columns',
336
339
  method: 'POST',
@@ -375,7 +378,7 @@ watch(() => filtersStore.filters, async (to, from) => {
375
378
  }
376
379
  console.log('🔄️ filters changed', JSON.stringify(to))
377
380
  page.value = 1;
378
- checkboxes.value = [];
381
+ checkboxes.value = []; // TODO: not sure absolutely needed here
379
382
  // update query param for each filter as filter_<column_name>=value
380
383
  const query = {};
381
384
  const currentQ = currentQuery();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.5.5-next.0",
3
+ "version": "1.5.5-next.1",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",