@processmaker/screen-builder 2.76.12 → 2.76.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/screen-builder",
3
- "version": "2.76.12",
3
+ "version": "2.76.13",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -6,6 +6,18 @@
6
6
  class="tab-pane active show h-100"
7
7
  >
8
8
  <template v-if="screen">
9
+ <b-overlay
10
+ :show="disabled"
11
+ id="overlay-background"
12
+ variant="white"
13
+ cardStyles="pointer-events: none;pointer-events: none;inset: 1px"
14
+ rounded="sm"
15
+ >
16
+ <template #overlay>
17
+ <div class="text-center">
18
+ <p>Please claim this task to continue.</p>
19
+ </div>
20
+ </template>
9
21
  <div class="card card-body border-top-0 h-100" :class="screenTypeClass">
10
22
  <div v-if="renderComponent === 'task-screen'">
11
23
  <vue-form-renderer
@@ -43,6 +55,7 @@
43
55
  {{ $t('Complete Task') }}
44
56
  </button>
45
57
  </div>
58
+ </b-overlay>
46
59
  </template>
47
60
  <template v-if="showTaskIsCompleted">
48
61
  <div class="card card-body text-center" v-cloak>
@@ -294,6 +307,15 @@ export default {
294
307
  }
295
308
  this.prepareTask();
296
309
  },
310
+ disableForSelfService() {
311
+ this.$nextTick(() => {
312
+ if (window.ProcessMaker.isSelfService) {
313
+ this.disabled = true;
314
+ } else {
315
+ this.disabled = false;
316
+ }
317
+ });
318
+ },
297
319
  closeTask(parentRequestId = null) {
298
320
  if (this.hasErrors) {
299
321
  this.$emit('error', this.requestId);
@@ -384,8 +406,8 @@ export default {
384
406
  },
385
407
  onUpdate(data) {
386
408
  this.$emit('input', data);
409
+ this.disableForSelfService();
387
410
  },
388
-
389
411
  activityAssigned() {
390
412
  // This may no longer be needed
391
413
  },