PMCORE-3234: The "Case Details" view provides the option of Unpause instead of Continue
This commit is contained in:
@@ -8,7 +8,7 @@ return [
|
||||
'name' => env('APP_NAME', 'ProcessMaker'),
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
'env' => env('APP_ENV', 'production'),
|
||||
'debug' => env('APP_DEBUG', false),
|
||||
'debug' => env('APP_DEBUG', true),
|
||||
'cache_lifetime' => env('APP_CACHE_LIFETIME', 60),
|
||||
'key' => env('APP_KEY', 'base64:rU28h/tElUn/eiLY0qC24jJq1rakvAFRoRl1DWxj/kM='),
|
||||
'cipher' => 'AES-256-CBC',
|
||||
|
||||
@@ -48,9 +48,15 @@
|
||||
<b-button
|
||||
v-if="props.row.STATUS === 'OPEN'"
|
||||
@click="onClick(props)"
|
||||
variant="outline-primary"
|
||||
variant="outline-success"
|
||||
>{{ $t("ID_CONTINUE") }}</b-button
|
||||
>
|
||||
<b-button
|
||||
v-if="props.row.STATUS === 'PAUSE'"
|
||||
@click="onClickUnpause(props)"
|
||||
variant="outline-primary"
|
||||
>{{ $t("ID_INPAUSE") }}</b-button
|
||||
>
|
||||
</div>
|
||||
</v-server-table>
|
||||
</div>
|
||||
@@ -428,6 +434,9 @@ export default {
|
||||
that.dataComments.noPerms = response.data.noPerms || 0;
|
||||
})
|
||||
.catch((err) => {
|
||||
if (err.response.data) {
|
||||
that.showAlert(err.response.data.error.message, "danger");
|
||||
}
|
||||
throw new Error(err);
|
||||
});
|
||||
},
|
||||
@@ -576,6 +585,18 @@ export default {
|
||||
this.$emit("onUpdatePage", "XCase");
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Unpause click handler
|
||||
*
|
||||
* @param {object} data
|
||||
*/
|
||||
onClickUnpause(data) {
|
||||
Api.cases.unpause(data).then((response) => {
|
||||
if (response.statusText === "OK") {
|
||||
this.$refs["vueTable"].getData();
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Claim case
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user