mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Revert "Revert "REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS""
This reverts commit c21457d6a7
.
This commit is contained in:
parent
d8734fc542
commit
5c899c765b
99 changed files with 394 additions and 384 deletions
|
@ -1,4 +1,5 @@
|
|||
import { setting } from 'discourse/lib/computed';
|
||||
import AdminDashboard from 'admin/models/admin-dashboard';
|
||||
|
||||
// This controller supports the default interface when you enter the admin section.
|
||||
export default Ember.Controller.extend({
|
||||
|
@ -26,7 +27,7 @@ export default Ember.Controller.extend({
|
|||
this.set('loadingProblems', true);
|
||||
this.set('problemsFetchedAt', new Date());
|
||||
var c = this;
|
||||
Discourse.AdminDashboard.fetchProblems().then(function(d) {
|
||||
AdminDashboard.fetchProblems().then(function(d) {
|
||||
c.set('problems', d.problems);
|
||||
c.set('loadingProblems', false);
|
||||
if( d.problems && d.problems.length > 0 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue