Skip to content

Commit b6d43a4

Browse files
committed
vuetify : fix loading state when no data available
1 parent 358d499 commit b6d43a4

File tree

1 file changed

+2
-0
lines changed
  • templates/vue-common/store/modules

1 file changed

+2
-0
lines changed

templates/vue-common/store/modules/crud.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export default function makeCrudModule({
9292
.findAll({ params })
9393
.then(response => response.json())
9494
.then(retrieved => {
95+
commit(ACTIONS.TOGGLE_LOADING);
96+
9597
commit(
9698
ACTIONS.SET_TOTAL_ITEMS,
9799
retrieved['{{{hydraPrefix}}}totalItems']

0 commit comments

Comments
 (0)