Bugfix: Reset pagination position on delete (my calculations)
This commit is contained in:
parent
8aca48b5ec
commit
dac371b481
1 changed files with 5 additions and 3 deletions
|
|
@ -197,7 +197,7 @@ export default {
|
|||
|
||||
if (0 === this.selectedStatus.draft.length) {
|
||||
this.modal.title = "Edit calculations";
|
||||
this.modal.message = `All of the ${this.premiseStore.selectedIds.length} selected calculations are already completed or archived and can no longer be edited. Would you like to create new drafts based on the data from the existing calculations, or continue the operation without these calculations?`;
|
||||
this.modal.message = `All of the ${this.premiseStore.selectedIds.length} selected calculations are already completed or archived and can no longer be edited. Would you like to create new drafts based on the data from the existing calculations?`;
|
||||
this.modal.action = "edit";
|
||||
this.modal.state = true;
|
||||
this.modal.acceptText = "Create new drafts & edit";
|
||||
|
|
@ -241,8 +241,10 @@ export default {
|
|||
this.updateOverallCheckBox();
|
||||
}
|
||||
},
|
||||
updatePagination() {
|
||||
updatePagination(resetPage = true) {
|
||||
this.pagination = this.premiseStore.pagination;
|
||||
if(resetPage)
|
||||
this.pagination.page = 1;
|
||||
},
|
||||
updateCheckbox(data) {
|
||||
this.premiseStore.setChecked(data.id, data.checked);
|
||||
|
|
@ -283,7 +285,7 @@ export default {
|
|||
async executeSearch() {
|
||||
|
||||
await this.premiseStore.setQuery(this.query);
|
||||
this.updatePagination();
|
||||
this.updatePagination(false);
|
||||
this.updateOverallCheckBox();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue