fix unpause in the peding task

This commit is contained in:
Rodrigo Quelca
2021-08-24 13:54:06 +00:00
parent 23f669e776
commit 87d5e5cac3

View File

@@ -52,10 +52,10 @@
>{{ $t("ID_CONTINUE") }}</b-button
>
<b-button
v-if="props.row.STATUS === 'PAUSE'"
v-if="props.row.STATUS === 'PAUSED'"
@click="onClickUnpause(props)"
variant="outline-primary"
>{{ $t("ID_INPAUSE") }}</b-button
>{{ $t("ID_UNPAUSE") }}</b-button
>
</div>
</v-server-table>
@@ -591,7 +591,7 @@ export default {
* @param {object} data
*/
onClickUnpause(data) {
Api.cases.unpause(data).then((response) => {
Api.cases.unpause(data.row).then((response) => {
if (response.statusText === "OK") {
this.$refs["vueTable"].getData();
}