WIP Наладила get после post client

This commit is contained in:
Daria Golova
2022-12-01 19:03:56 +03:00
parent e3697d4416
commit 6837d9e498
5 changed files with 23 additions and 31 deletions

View File

@@ -17,9 +17,9 @@
:check="selectedCheck",
:client="client",
:row-overlay="deletedRowId === client.id",
:update-data-client="updateDataClient",
@delete-client="deleteClientHandler",
@recover-client="clearDeletedRowId",
@update-clients="updateDataClient"
)
client-table-pagination(
v-if="paginationInfo.length > 1"
@@ -181,11 +181,9 @@ export default {
updatedClients() {
if (this.updatedClients === true) {
this.textSearch = "";
setTimeout(() => {
this.fetchDataClients().then(
() => (this.currentTablePage = this.pageCount)
);
}, 100);
this.fetchDataClients().then(
() => (this.currentTablePage = this.pageCount)
);
this.$emit("reset-updated-clients");
}
},