mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 15:48:27 -05:00
improved loading animation
This commit is contained in:
@@ -1219,6 +1219,7 @@ export default {
|
|||||||
// this.genericAPI inherited from ApiMixin
|
// this.genericAPI inherited from ApiMixin
|
||||||
refreshData: _debounce(function (random) {
|
refreshData: _debounce(function (random) {
|
||||||
this.recipes_loading = true
|
this.recipes_loading = true
|
||||||
|
this.recipes = Array(this.ui.page_size).fill({loading: true})
|
||||||
let params = this.buildParams(random)
|
let params = this.buildParams(random)
|
||||||
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params)
|
this.genericAPI(this.Models.RECIPE, this.Actions.LIST, params)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user