mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 11:25:15 +08:00
DEV: introduces prettier for es6 files
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
import { ajax } from 'discourse/lib/ajax';
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
|
||||
const AdminDashboard = Discourse.Model.extend({});
|
||||
|
||||
AdminDashboard.reopenClass({
|
||||
|
||||
/**
|
||||
Fetch all dashboard data. This can be an expensive request when the cached data
|
||||
has expired and the server must collect the data again.
|
||||
@ -14,11 +13,10 @@ AdminDashboard.reopenClass({
|
||||
find: function() {
|
||||
return ajax("/admin/dashboard.json").then(function(json) {
|
||||
var model = AdminDashboard.create(json);
|
||||
model.set('loaded', true);
|
||||
model.set("loaded", true);
|
||||
return model;
|
||||
});
|
||||
},
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
export default AdminDashboard;
|
||||
|
Reference in New Issue
Block a user