1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard/models/site.js.es6
2022-03-16 12:33:34 +01:00

11 Zeilen
376 B
JavaScript

import Site from "discourse/models/site";
import { getOwner } from "discourse-common/lib/get-owner";
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 = getOwner(this).lookup("service:store");
return store.createRecord("site", {});
},
});