Browse Source

using constant

Peter Holmberg 7 years ago
parent
commit
e50a87aec9

+ 1 - 1
public/app/features/explore/Graph.tsx

@@ -163,7 +163,7 @@ class Graph extends Component<any, any> {
           !this.state.showAllTimeSeries && (
             <div className="time-series-disclaimer">
               <i className="fa fa-fw fa-warning disclaimer-icon" />
-              Showing only 20 time series.{' '}
+              {`Showing only ${MAX_NUMBER_OF_TIME_SERIES} time series. `}
               <span className="show-all-time-series" onClick={this.onShowAllTimeSeries}>{`Show all ${
                 this.props.data.length
               }`}</span>

+ 1 - 2
public/app/features/explore/__snapshots__/Graph.test.tsx.snap

@@ -468,8 +468,7 @@ exports[`Render should render component with disclaimer 1`] = `
     <i
       className="fa fa-fw fa-warning disclaimer-icon"
     />
-    Showing only 20 time series.
-     
+    Showing only 20 time series. 
     <span
       className="show-all-time-series"
       onClick={[Function]}