Commit a14fad1b authored by Reza Sahebgharan's avatar Reza Sahebgharan

fix(count bug): edit limit to be equal to count

parent ec45d803
Pipeline #1058 passed with stage
......@@ -237,7 +237,11 @@
<v-card>
<v-card-actions>
<v-col cols="9">
<v-text-field :label="$t('RegisterRoute.advancedSearchLabel')" v-model="queryText" style="direction:ltr"></v-text-field>
<v-text-field
:label="$t('RegisterRoute.advancedSearchLabel')"
v-model="queryText"
style="direction:ltr"
></v-text-field>
</v-col>
<v-col cols="3" class="d-flex align-center justify-center">
<v-btn class="primary" @click="searchServerSide">{{$t("RegisterRoute.searchBtn")}}</v-btn>
......@@ -411,13 +415,14 @@ export default {
searchServerSide() {
try {
this.query = JSON.parse(this.queryText);
this.limit = 40;
this.limit = this.count + 5;
// this.limit = 40;
} catch (e) {
this.alertText = this.$t("RegisterRoute.jsonParseError");
this.alertSnackbar = true;
this.query = null;
this.limit = 40;
this.limit = this.count + 5;
// this.limit = 40;
}
}
},
......@@ -452,7 +457,8 @@ export default {
this.alertText = this.$t("RegisterRoute.dbError");
this.alertSnackbar = true;
this.query = null;
this.limit = 40;
this.limit = this.count + 5;
// this.limit = 40;
}
}
}
......@@ -498,7 +504,8 @@ export default {
} catch (e) {
this.alertText = this.$t("RegisterRoute.dbError");
this.alertSnackbar = true;
this.limit = 40;
this.limit = this.count + 5;
// this.limit = 40;
return [];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment