1
0
Fork 0

Re-apply sortable when links change

Dieser Commit ist enthalten in:
Angus McLeod 2018-06-29 16:54:06 +10:00
Ursprung 1b1df47e62
Commit 33792e4d35

Datei anzeigen

@ -1,11 +1,15 @@
import { default as computed } from 'ember-addons/ember-computed-decorators';
import { default as computed, on, observes } from 'ember-addons/ember-computed-decorators';
export default Ember.Component.extend({
classNames: 'wizard-links',
items: Ember.A(),
@on('didInsertElement')
@observes('links.@each')
didInsertElement() {
this.applySortable();
Ember.run.scheduleOnce('afterRender', () => {
this.applySortable();
});
},
applySortable() {