0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00
discourse-custom-wizard/assets/javascripts/discourse/models/site.js.es6

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", {});
},
});