mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
apply prettier on gigantic find and replace (#7604)
This commit is contained in:
@ -92,9 +92,7 @@ export default Ember.Controller.extend({
|
||||
.save()
|
||||
.then(() => {
|
||||
this.set("saved", true);
|
||||
this.adminWebHooks
|
||||
.get("model")
|
||||
.addObject(model);
|
||||
this.adminWebHooks.get("model").addObject(model);
|
||||
|
||||
if (isNew) {
|
||||
this.transitionToRoute("adminWebHooks.show", model.get("id"));
|
||||
@ -135,9 +133,7 @@ export default Ember.Controller.extend({
|
||||
model
|
||||
.destroyRecord()
|
||||
.then(() => {
|
||||
this.adminWebHooks
|
||||
.get("model")
|
||||
.removeObject(model);
|
||||
this.adminWebHooks.get("model").removeObject(model);
|
||||
this.transitionToRoute("adminWebHooks");
|
||||
})
|
||||
.catch(popupAjaxError);
|
||||
|
Reference in New Issue
Block a user