Browse Source

Use `component:selected` in OpenStyleManager

multiple-select
Artur Arseniev 8 years ago
parent
commit
20fbbb1b71
  1. 4
      src/commands/view/OpenStyleManager.js

4
src/commands/view/OpenStyleManager.js

@ -45,7 +45,7 @@ module.exports = {
this.panel.set('appendContent', this.$cn).trigger('change:appendContent');
this.target = em.editor;
this.listenTo(this.target, 'change:selectedComponent', this.toggleSm);
this.listenTo(this.target, 'component:selected', this.toggleSm);
}
this.toggleSm();
},
@ -58,7 +58,7 @@ module.exports = {
const sender = this.sender;
if (sender && sender.get && !sender.get('active')) return;
if (this.target.get('selectedComponent')) {
if (this.target.getSelected()) {
this.$cn2.show();
this.$header.hide();
} else {

Loading…
Cancel
Save