mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
free trial: Send users to /upgrade after realm creation.
This commit is contained in:
@@ -6,11 +6,16 @@ exports.create_ajax_request = function (url, form_name, stripe_token = null, num
|
||||
const form_error = "#" + form_name + "-error";
|
||||
const form_loading = "#" + form_name + "-loading";
|
||||
|
||||
const zulip_limited_section = "#zulip-limited-section";
|
||||
const free_trial_alert_message = "#free-trial-alert-message";
|
||||
|
||||
loading.make_indicator($(form_loading_indicator),
|
||||
{text: 'Processing ...', abs_positioned: true});
|
||||
$(form_input_section).hide();
|
||||
$(form_error).hide();
|
||||
$(form_loading).show();
|
||||
$(zulip_limited_section).hide();
|
||||
$(free_trial_alert_message).hide();
|
||||
|
||||
const data = {};
|
||||
if (stripe_token) {
|
||||
@@ -45,6 +50,8 @@ exports.create_ajax_request = function (url, form_name, stripe_token = null, num
|
||||
$(form_loading).hide();
|
||||
$(form_error).show().text(JSON.parse(xhr.responseText).msg);
|
||||
$(form_input_section).show();
|
||||
$(zulip_limited_section).show();
|
||||
$(free_trial_alert_message).show();
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user