mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:34:09 +08:00
Merge pull request #3771 from riking/category-reorder
Do fix positions upon opening dialog
This commit is contained in:
commit
3215273091
|
@ -1,13 +1,18 @@
|
||||||
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
import ModalFunctionality from 'discourse/mixins/modal-functionality';
|
||||||
const BufferedProxy = window.BufferedProxy; // import BufferedProxy from 'ember-buffered-proxy/proxy';
|
const BufferedProxy = window.BufferedProxy; // import BufferedProxy from 'ember-buffered-proxy/proxy';
|
||||||
import { popupAjaxError } from 'discourse/lib/ajax-error';
|
import { popupAjaxError } from 'discourse/lib/ajax-error';
|
||||||
import computed from "ember-addons/ember-computed-decorators";
|
import { on, default as computed } from "ember-addons/ember-computed-decorators";
|
||||||
import Ember from 'ember';
|
import Ember from 'ember';
|
||||||
|
|
||||||
const SortableArrayProxy = Ember.ArrayProxy.extend(Ember.SortableMixin);
|
const SortableArrayProxy = Ember.ArrayProxy.extend(Ember.SortableMixin);
|
||||||
|
|
||||||
export default Ember.Controller.extend(ModalFunctionality, Ember.Evented, {
|
export default Ember.Controller.extend(ModalFunctionality, Ember.Evented, {
|
||||||
|
|
||||||
|
@on('init')
|
||||||
|
_fixOrder() {
|
||||||
|
this.send('fixIndices');
|
||||||
|
},
|
||||||
|
|
||||||
@computed("site.categories")
|
@computed("site.categories")
|
||||||
categoriesBuffered(categories) {
|
categoriesBuffered(categories) {
|
||||||
const bufProxy = Ember.ObjectProxy.extend(BufferedProxy);
|
const bufProxy = Ember.ObjectProxy.extend(BufferedProxy);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user