@processmaker/screen-builder 2.76.11 → 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.11",
3
+ "version": "2.76.13",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -112,7 +112,7 @@ export default {
112
112
  this.setPrefix();
113
113
  if (this.$refs['uploader']) {
114
114
  this.$refs['uploader'].$forceUpdate();
115
- // Re-upload stored files;
115
+ // Re-upload stored files;
116
116
  // Files disappear when navigating between pages with the Page Navigation component
117
117
  if (this.files.length > 0) {
118
118
  this.$refs.uploader.uploader.addFiles(this.files);
@@ -476,7 +476,7 @@ export default {
476
476
  if (file.ignored) {
477
477
  this.invalidFile = true;
478
478
  this.uploading = false;
479
- window.ProcessMaker.alert(this.$t('File not allowed.'), 'danger');
479
+ window.ProcessMaker.alert(this.$t('This file type is not accepted.'), 'danger');
480
480
  return false;
481
481
  }
482
482
  }
@@ -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
  },