Skip to content

Commit b7fdded

Browse files
Ensure that low-level annotations cannot be added if no feature buttons are shown
1 parent 86de828 commit b7fdded

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,6 +2465,7 @@ $.widget('crowdcurio.TimeSeriesAnnotator', {
24652465
_setupAnnotationInteraction: function() {
24662466
var that = this;
24672467
if (that.options.isReadOnly) return;
2468+
if (!that.options.features.order || !that.options.features.order.length) return;
24682469
var chart = that.vars.chart;
24692470
var container = chart.container;
24702471

lib/time-series-annotator.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,7 @@ $.widget('crowdcurio.TimeSeriesAnnotator', {
19761976
_setupAnnotationInteraction: function() {
19771977
var that = this;
19781978
if (that.options.isReadOnly) return;
1979+
if (!that.options.features.order || !that.options.features.order.length) return;
19791980
var chart = that.vars.chart;
19801981
var container = chart.container;
19811982

0 commit comments

Comments
 (0)