diff --git a/web/src/billing/billing.ts b/web/src/billing/billing.ts
index c52eda0e22..092b9e8250 100644
--- a/web/src/billing/billing.ts
+++ b/web/src/billing/billing.ts
@@ -166,21 +166,25 @@ export function initialize(): void {
},
);
- $("#confirm-cancel-subscription-modal .dialog_submit_button, #reactivate-subscription").on(
- "click",
- (e) => {
- helpers.create_ajax_request("/json/billing/plan", "planchange", [], "PATCH", () =>
- window.location.replace("/billing/"),
- );
- e.preventDefault();
- },
- );
+ $(
+ "#confirm-cancel-subscription-modal .dialog_submit_button, #reactivate-subscription, #confirm-end-free-trial .dialog_submit_button",
+ ).on("click", (e) => {
+ helpers.create_ajax_request("/json/billing/plan", "planchange", [], "PATCH", () =>
+ window.location.replace("/billing/"),
+ );
+ e.preventDefault();
+ });
$("#cancel-subscription").on("click", (e) => {
e.preventDefault();
portico_modals.open("confirm-cancel-subscription-modal");
});
+ $("#end-free-trial").on("click", (e) => {
+ e.preventDefault();
+ portico_modals.open("confirm-end-free-trial");
+ });
+
$("#current-manual-license-count").on("keyup", () => {
const {new_current_manual_license_count, old_current_manual_license_count} =
get_old_and_new_license_count_for_current_cycle();