Bug Description
Custom Bard Extensions can not be shown or hidden with the button configuration in the YAML file. The buttons are always shown.
How to Reproduce
Extra Detail
Here is an example how we register the extension in our app.js
// booting
Statamic.booting(() => {
// bard extensions
Statamic.$bard.extend(({ bard, mark }) => mark(new EntryLink(bard)));
Statamic.$components.register('EntryLinkToolbarButton', require('./components/bard/EntryLinkToolbarButton.vue').default);
Statamic.$bard.buttons(() => ({
name: 'entrylink',
text: __('Link to Entry'),
command: 'entrylink',
html: '<i class="icon icon-forward"></i>',
component: 'EntryLinkToolbarButton',
}));
});
Environment
Statamic version:cc4b3bd
PHP version: 7.3
Install method (choose one):
- Fresh install from
statamic/statamic - Starter kit
- Existing Laravel app
- Other (please explain this magic!)
Bug Description
Custom Bard Extensions can not be shown or hidden with the button configuration in the YAML file. The buttons are always shown.
How to Reproduce
Extra Detail
Here is an example how we register the extension in our app.js
Environment
Statamic version:cc4b3bd
PHP version: 7.3
Install method (choose one):
statamic/statamic