Commit 78a72dfa authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

Fix naming issue with the BucketBar

In a PR #3055, we remove reference to the plugin system for the
BucketBar and we create a property `bucketBar` in `Guest` class. I
overlook one of this reference in the `sidebar`.
parent 63e2da2f
...@@ -78,7 +78,7 @@ export default class Sidebar extends Guest { ...@@ -78,7 +78,7 @@ export default class Sidebar extends Guest {
if (config.theme === 'clean') { if (config.theme === 'clean') {
frame.classList.add('annotator-frame--theme-clean'); frame.classList.add('annotator-frame--theme-clean');
} else { } else {
this.bucketbar = new BucketBar(frame, this, config.BucketBar); this.bucketBar = new BucketBar(frame, this, config.BucketBar);
} }
// Undocumented switch to enable/disable the wrapping of the sidebar inside a shadow DOM // Undocumented switch to enable/disable the wrapping of the sidebar inside a shadow DOM
......
...@@ -787,6 +787,11 @@ describe('Sidebar', () => { ...@@ -787,6 +787,11 @@ describe('Sidebar', () => {
}); });
describe('config', () => { describe('config', () => {
it('does have the BucketBar', () => {
const sidebar = createSidebar();
assert.isNotNull(sidebar.bucketBar);
});
it('does not have the BucketBar if the clean theme is enabled', () => { it('does not have the BucketBar if the clean theme is enabled', () => {
const sidebar = createSidebar({ theme: 'clean' }); const sidebar = createSidebar({ theme: 'clean' });
assert.isNull(sidebar.bucketBar); assert.isNull(sidebar.bucketBar);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment