1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/models/site.js.es6
2020-06-22 10:13:10 +10:00

10 Zeilen
Kein EOL
324 B
JavaScript

import Site from "discourse/models/site";
export default Site.reopenClass({
// There is no site data actually loaded by the CW yet. This placeholder is
// needed by imported classes
createCurrent() {
const store = Discourse.__container__.lookup("service:store");
return store.createRecord("site", {});
},
})