0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

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({ export default Ember.Component.extend({
classNames: 'wizard-links', classNames: 'wizard-links',
items: Ember.A(), items: Ember.A(),
@on('didInsertElement')
@observes('links.@each')
didInsertElement() { didInsertElement() {
this.applySortable(); Ember.run.scheduleOnce('afterRender', () => {
this.applySortable();
});
}, },
applySortable() { applySortable() {