Skip to content

Commit

Permalink
Whoops ! Fix monolang again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daandelange committed Nov 25, 2023
1 parent 6c301e7 commit eacec7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/components/Sections/OnePageStats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<div v-if="showTimeline" class="detailcolumn visitsovertime">
<k-headline size="medium">{{ $t('simplestats.visits.visitsovertime') }}</k-headline>
<area-chart
:chart-data="languagesAreEnabled?languagesOverTime:visitsOverTimeData"
:chart-data="languagesOverTime"
:chart-labels="chartPeriodLabels"
:download="languagesAreEnabled?'PageLanguagesOverTime.png':'PageVisitsOverTime.png'"
download="PageVisitsOverTime.png"
:x-time-axis="true"
:y-visits-axis="true"
:height="(this.sectionSize=='small')?240:(this.sectionSize=='large')?280:(this.sectionSize=='tiny')?120:260"
Expand Down Expand Up @@ -118,8 +118,7 @@ export default {
*/
computed: {
languagesAreEnabled(){
//return this.languagesOverTime && this.languagesOverTime.length > 0;
return this.chartLanguagesLabels && this.chartLanguagesLabels.length > 0;
return this.chartLanguagesLabels && this.chartLanguagesLabels.length > 1;
},
sectionSize(){
if(this.size=='small'||this.size=='compact') return 'small';
Expand Down

0 comments on commit eacec7a

Please sign in to comment.