prettier does not like line lengths

This commit is contained in:
Rimian Perkins 2019-12-03 10:52:46 +11:00
parent a21812e886
commit ccb6e5fcbd
4 changed files with 18 additions and 8 deletions

View File

@ -22,7 +22,9 @@ export default Ember.Controller.extend({
this.get("model.product")
.update()
.then(() => {
this.transitionToRoute("adminPlugins.discourse-subscriptions.products");
this.transitionToRoute(
"adminPlugins.discourse-subscriptions.products"
);
})
.catch(popupAjaxError);
}

View File

@ -16,7 +16,9 @@ export default Discourse.Route.extend({
product
.destroy()
.then(() => {
this.controllerFor("adminPluginsDiscourseSubscriptionsProductsIndex")
this.controllerFor(
"adminPluginsDiscourseSubscriptionsProductsIndex"
)
.get("model")
.removeObject(product);
})

View File

@ -26,10 +26,14 @@ export default Discourse.Route.extend({
},
renderTemplate() {
this.render("adminPlugins.discourse-subscriptions.products.show.plans.show", {
into: "adminPlugins.discourse-subscriptions.products",
outlet: "main",
controller: "adminPlugins.discourse-subscriptions.products.show.plans.show"
});
this.render(
"adminPlugins.discourse-subscriptions.products.show.plans.show",
{
into: "adminPlugins.discourse-subscriptions.products",
outlet: "main",
controller:
"adminPlugins.discourse-subscriptions.products.show.plans.show"
}
);
}
});

View File

@ -28,7 +28,9 @@ export default Discourse.Route.extend({
plan
.destroy()
.then(() => {
this.controllerFor("adminPluginsDiscourseSubscriptionsProductsShow")
this.controllerFor(
"adminPluginsDiscourseSubscriptionsProductsShow"
)
.get("model.plans")
.removeObject(plan);
})