Skip to content

Commit

Permalink
Merge pull request #1585 from ProcessMaker/feature/FOUR-15487
Browse files Browse the repository at this point in the history
FOUR-15487:Phase1: Remove Analytics chart from future and existing customers in dev  (QuickSight related)
  • Loading branch information
ryancooley committed May 15, 2024
2 parents 4188d55 + bfdfbd3 commit 18d6700
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Binary file added src/assets/welcome_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions src/components/renderer/form-analytics-chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<div class="d-flex flex-wrap p-2">
<b-col cols="12">
<b-card-text>
<b-embed type="iframe" :src="graphic.link"></b-embed>
<b-embed v-if="!showChart" type="iframe" :src="graphic.link"></b-embed>
<img v-else src="../../assets/welcome_default.png" :style="{width:'100%', aspectRatio:21/9}" :alt="$t('Welcome Default')" />
</b-card-text>
</b-col>
</div>
Expand All @@ -27,7 +28,8 @@ export default {
graphic: [],
customStyle: {
"border-radius": "8px"
}
},
showChart: false,
};
},
watch: {
Expand All @@ -41,10 +43,14 @@ export default {
if (this.listChartOption && this.listChartOption.name) {
this.graphic = this.listChartOption;
}
this.verifyChart();
},
methods: {
openExternalLink() {
window.open("/package-analytics-reporting", "_blank");
},
verifyChart() {
this.showChart = this.graphic.name === "PM Analytics Chart" || this.graphic.name === "PM Analytics Dashboard" || this.graphic.length === 0;
}
}
};
Expand Down

0 comments on commit 18d6700

Please sign in to comment.