Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Re-apply sortable when links change
Dieser Commit ist enthalten in:
Ursprung
1b1df47e62
Commit
33792e4d35
1 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen
|
@ -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() {
|
||||||
|
|
Laden …
In neuem Issue referenzieren