Skip to content

Commit

Permalink
some change
Browse files Browse the repository at this point in the history
  • Loading branch information
fagubla committed May 13, 2024
1 parent b498f00 commit bfdfbd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/renderer/form-analytics-chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<b-col cols="12">
<b-card-text>
<b-embed v-if="!showChart" type="iframe" :src="graphic.link"></b-embed>
<img v-else src="../../assets/welcome_default.png" style="width:100%" :alt="$t('Welcome Default')" />
<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 Down Expand Up @@ -50,7 +50,7 @@ export default {
window.open("/package-analytics-reporting", "_blank");
},
verifyChart() {
this.showChart = this.graphic.name === "PM Analytics Chart";
this.showChart = this.graphic.name === "PM Analytics Chart" || this.graphic.name === "PM Analytics Dashboard" || this.graphic.length === 0;
}
}
};
Expand Down

0 comments on commit bfdfbd3

Please sign in to comment.