Browse Source

Fixes

pull/1130/head
Juan Martín Pithod 8 years ago
parent
commit
978c5aa22b
  1. 13
      src/dom_components/model/ComponentImage.js

13
src/dom_components/model/ComponentImage.js

@ -37,13 +37,12 @@ module.exports = Component.extend(
let hasButtonBool = false;
var tb = this.get('toolbar');
if (
tb.forEach(button => {
if (button.command === 'image-editor') {
hasButtonBool = true;
}
})
);
for (let i = 0; i < tb.length; i++) {
if (tb[i].command === 'image-editor') {
hasButtonBool = true;
break;
}
}
if (!hasButtonBool) {
tb.push({

Loading…
Cancel
Save