0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02: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({
classNames: 'wizard-links',
items: Ember.A(),
@on('didInsertElement')
@observes('links.@each')
didInsertElement() {
Ember.run.scheduleOnce('afterRender', () => {
this.applySortable();
});
},
applySortable() {