Skip to content

Commit

Permalink
chore: added config option to not show timeslider within gtif instance
Browse files Browse the repository at this point in the history
  • Loading branch information
santilland committed Oct 21, 2024
1 parent efd6499 commit c2105a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/components/IndicatorTimeSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default {
return this.compareActive;
},
showTimeSlider() {
return this.appConfig.id === 'gtif';
return this.appConfig.id === 'gtif' && !this.indicator.disableTimeSlider;
},
},
created() {
Expand Down
3 changes: 2 additions & 1 deletion app/src/config/gtif.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,8 @@ export const globalIndicators = [
display: [
{
protocol: 'cog',
id: 'FCM1',
disableTimeSlider: true,
id: 'HAUC1',
sources: [
{ url: 'https://eox-gtif-public.s3.eu-central-1.amazonaws.com/HeatAdapt/update/{time}' },
],
Expand Down
3 changes: 2 additions & 1 deletion app/src/plugins/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ChartDataLabels from 'chartjs-plugin-datalabels'; // eslint-disable-line

import * as ChartAnnotation from 'chartjs-plugin-annotation';
import * as ChartZoomPlugin from 'chartjs-plugin-zoom';
import * as ChartRegressions from 'chartjs-plugin-regression';

/**
* Used to show a small bar on the chart if the value is 0
Expand Down Expand Up @@ -198,4 +199,4 @@ const defaultConfig = {
};

Chart.scaleService.registerScaleType('myLogScale', MyLogScale, defaultConfig);
Chart.plugins.register([ChartAnnotation, ChartZoomPlugin, showZeroPlugin]);
Chart.plugins.register([ChartAnnotation, ChartZoomPlugin, showZeroPlugin, ChartRegressions]);

0 comments on commit c2105a5

Please sign in to comment.