Skip to content

Commit

Permalink
Fix self service message flashing on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanpro committed Aug 6, 2024
1 parent 55151be commit 2ba8791
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
>
<template v-if="screen">
<b-overlay
:show="disabled"
:show="disabled || isSelfService"
id="overlay-background"
variant="white"
:variant="isSelfService ? 'white' : 'transparent'"
:blur="null"
cardStyles="pointer-events: none;pointer-events: none;inset: 1px"
rounded="sm"
>
<template #overlay>
<div class="text-center">
<p>Please claim this task to continue.</p>
<p v-if="isSelfService">Please claim this task to continue.</p>
</div>
</template>
<div class="card card-body border-top-0 h-100" :class="screenTypeClass">
Expand Down Expand Up @@ -124,6 +125,7 @@ export default {
loadingButton: false,
loadingTask: false,
loadingListeners: this.waitLoadingListeners,
isSelfService: false,
};
},
watch: {
Expand Down Expand Up @@ -359,12 +361,12 @@ export default {
}
this.prepareTask();
},
disableForSelfService() {
setSelfService() {
this.$nextTick(() => {
if (window.ProcessMaker.isSelfService) {
this.disabled = true;
this.isSelfService = true;
} else {
this.disabled = false;
this.isSelfService = false;
}
});
},
Expand Down Expand Up @@ -546,7 +548,7 @@ export default {
},
onUpdate(data) {
this.$emit('input', data);
this.disableForSelfService();
this.setSelfService();
},
activityAssigned() {
// This may no longer be needed
Expand Down

0 comments on commit 2ba8791

Please sign in to comment.