mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-11 09:07:12 -05:00
fixed page reset in search page
This commit is contained in:
@@ -244,9 +244,10 @@ function searchRecipes(options: VDataTableUpdateOptions) {
|
|||||||
let api = new ApiApi()
|
let api = new ApiApi()
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|
||||||
|
page.value = options.page
|
||||||
let searchParameters = {
|
let searchParameters = {
|
||||||
query: query.value,
|
query: query.value,
|
||||||
page: page.value,
|
page: options.page,
|
||||||
pageSize: pageSize.value,
|
pageSize: pageSize.value,
|
||||||
} as ApiRecipeListRequest
|
} as ApiRecipeListRequest
|
||||||
|
|
||||||
@@ -268,7 +269,7 @@ function searchRecipes(options: VDataTableUpdateOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* reset all search parameters and perform emtpy searchj
|
* reset all search parameters and perform emtpy search
|
||||||
*/
|
*/
|
||||||
function reset() {
|
function reset() {
|
||||||
page.value = 1
|
page.value = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user