mirror of
https://github.com/discourse/discourse.git
synced 2025-09-11 21:04:42 +08:00
REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS
This change is discussed here: https://meta.discourse.org/t/deprecating-es6-compatibility-layer/35821 Prior to this change we were not booting correctly with DISCOURSE_NO_CONSTANTS
This commit is contained in:
parent
f5b34d5f53
commit
c0b277d273
98 changed files with 380 additions and 379 deletions
|
@ -1,4 +1,5 @@
|
|||
import debounce from 'discourse/lib/debounce';
|
||||
import Permalink from 'admin/models/permalink';
|
||||
|
||||
export default Ember.ArrayController.extend({
|
||||
loading: false,
|
||||
|
@ -7,7 +8,7 @@ export default Ember.ArrayController.extend({
|
|||
show: debounce(function() {
|
||||
var self = this;
|
||||
self.set('loading', true);
|
||||
Discourse.Permalink.findAll(self.get("filter")).then(function(result) {
|
||||
Permalink.findAll(self.get("filter")).then(function(result) {
|
||||
self.set('model', result);
|
||||
self.set('loading', false);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue