DEV: Add additional hooks for theme-creator plugin

This commit is contained in:
David Taylor
2019-02-12 14:17:34 +00:00
parent 220944a38a
commit 59640ef373
2 changed files with 16 additions and 6 deletions
@@ -76,6 +76,11 @@ export default Ember.Controller.extend(ModalFunctionality, {
}
}
if (this.get("model.user_id")) {
// Used by theme-creator
options.data["user_id"] = this.get("model.user_id");
}
this.set("loading", true);
ajax(this.get("importUrl"), options)
.then(result => {