Skip to content

Commit 8b0de3f

Browse files
Merge pull request #485 from HardeepAsrani/development
Fix notice typo
2 parents b243307 + ac6dc30 commit 8b0de3f

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

classes/Visualizer/Gutenberg/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function enqueue_gutenberg_scripts() {
9595
'proTeaser' => Visualizer_Plugin::PRO_TEASER_URL,
9696
'absurl' => VISUALIZER_ABSURL,
9797
'charts' => Visualizer_Module_Admin::_getChartTypesLocalized(),
98-
'adminPage' => menu_page_url( 'visualiezr', false ),
98+
'adminPage' => menu_page_url( 'visualizer', false ),
9999
);
100100
wp_localize_script( 'visualizer-gutenberg-block', 'visualizerLocalize', $translation_array );
101101

classes/Visualizer/Gutenberg/build/block.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

classes/Visualizer/Gutenberg/src/Components/Charts.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const {
2424
const {
2525
Button,
2626
Dashicon,
27+
ExternalLink,
28+
Notice,
2729
Placeholder,
2830
Spinner
2931
} = wp.components;
@@ -73,6 +75,16 @@ class Charts extends Component {
7375

7476
return (
7577
<div className="visualizer-settings__charts">
78+
<Notice
79+
status="warning"
80+
isDismissible={ false }
81+
>
82+
{ __( 'ChartJS charts are currently not available for selection here, you must visit the library, get the shortcode, and add the chart here in a shortcode tag.' ) }
83+
84+
<ExternalLink href={ visualizerLocalize.adminPage }>
85+
{ __( 'Click here to visit Visualizer Charts Library.' ) }
86+
</ExternalLink>
87+
</Notice>
7688

7789
{
7890
( null !== charts ) ?

classes/Visualizer/Gutenberg/src/Editor.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ const {
3131
ButtonGroup,
3232
Dashicon,
3333
Placeholder,
34-
Spinner,
35-
Notice
34+
Spinner
3635
} = wp.components;
3736

3837
class Editor extends Component {
@@ -354,14 +353,6 @@ class Editor extends Component {
354353

355354
{ 'home' === this.state.route && (
356355
<div className="visualizer-settings__content">
357-
358-
<Notice
359-
status="warning"
360-
isDismissible={ false }
361-
>
362-
{ __( 'ChartsJS charts are currently not a avialable to select form the block. You can find them on Visualizer admin page.' ) }
363-
</Notice>
364-
365356
<div className="visualizer-settings__content-description">
366357
{ __( 'Make a new chart or display an existing one?' ) }
367358
</div>

0 commit comments

Comments
 (0)