discourse-subscriptions/assets/javascripts/discourse/discourse-subscriptions-user-route-map.js
Faizaan Gagan 945af4f140
FIX: Allow user to update card details for recurring subscriptions (#123)
* add new route for card update

* create backend route

* update label

* basic functionality working

* ran rubocop

* added rspec tests for functionality

* make payment_method param compulsory

* fixed js linting

* improve client side error handling

* improve server side error handling

* improved update card page UI

* improve button UI for user subscriptions page

* give feedback to user about save status

* remove heading from last column

* fix padding on edit/delete buttons for update table

Co-authored-by: Blake Erickson <o.blakeerickson@gmail.com>
2022-07-05 19:53:27 -06:00

13 lines
289 B
JavaScript

export default {
resource: "user",
path: "users/:username",
map() {
this.route("billing", function () {
this.route("payments");
this.route("subscriptions", function () {
this.route("card", { path: "/card/:stripe-subscription-id" });
});
});
},
};