Skip to content

Commit 3bc4042

Browse files
Merge pull request #746 from contactashish13/issue-745
Confusing chart title details
2 parents 6addec6 + aa69d82 commit 3bc4042

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

classes/Visualizer/Gutenberg/build/block.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/Visualizer/Gutenberg/src/Components/Sidebar/GeneralSettings.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ class GeneralSettings extends Component {
4646
positions.push({ label: __( 'Inside the chart' ), value: 'in' });
4747
}
4848

49+
let titleHelp = __( 'Text to display above the chart.' );
50+
if ( 0 <= [ 'tabular', 'dataTable', 'gauge', 'geo', 'timeline' ].indexOf( type ) ) {
51+
titleHelp = __( 'Text to display in the back-end admin area' );
52+
}
53+
4954
return (
5055
<PanelBody
5156
title={ __( 'General Settings' ) }
@@ -61,7 +66,7 @@ class GeneralSettings extends Component {
6166

6267
<TextControl
6368
label={ __( 'Chart Title' ) }
64-
help={ __( 'Text to display above the chart.' ) }
69+
help={ titleHelp }
6570
value={ settings.title }
6671
onChange={ e => {
6772
settings.title = e;

0 commit comments

Comments
 (0)