@processmaker/screen-builder 2.85.11 → 2.85.12

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.85.11",
3
+ "version": "2.85.12",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
Binary file
@@ -10,7 +10,8 @@
10
10
  <div class="d-flex flex-wrap p-2">
11
11
  <b-col cols="12">
12
12
  <b-card-text>
13
- <b-embed type="iframe" :src="graphic.link"></b-embed>
13
+ <b-embed v-if="!showChart" type="iframe" :src="graphic.link"></b-embed>
14
+ <img v-else src="../../assets/welcome_default.png" :style="{width:'100%', aspectRatio:21/9}" :alt="$t('Welcome Default')" />
14
15
  </b-card-text>
15
16
  </b-col>
16
17
  </div>
@@ -27,7 +28,8 @@ export default {
27
28
  graphic: [],
28
29
  customStyle: {
29
30
  "border-radius": "8px"
30
- }
31
+ },
32
+ showChart: false,
31
33
  };
32
34
  },
33
35
  watch: {
@@ -41,10 +43,14 @@ export default {
41
43
  if (this.listChartOption && this.listChartOption.name) {
42
44
  this.graphic = this.listChartOption;
43
45
  }
46
+ this.verifyChart();
44
47
  },
45
48
  methods: {
46
49
  openExternalLink() {
47
50
  window.open("/package-analytics-reporting", "_blank");
51
+ },
52
+ verifyChart() {
53
+ this.showChart = this.graphic.name === "PM Analytics Chart" || this.graphic.name === "PM Analytics Dashboard" || this.graphic.length === 0;
48
54
  }
49
55
  }
50
56
  };