discourse-subscriptions/assets/javascripts/discourse/controllers/admin-plugins-discourse-pat...

15 lines
326 B
JavaScript

import { popupAjaxError } from "discourse/lib/ajax-error";
export default Ember.Controller.extend({
actions: {
createPlan() {
this.get("model")
.save()
.then(() => {
this.transitionToRoute("adminPlugins.discourse-patrons.plans");
})
.catch(popupAjaxError);
}
}
});