templates: Wrap subscription settings into 3 respective sections.

We wrap the general stream name, description and type properties in
a "general_settings" div.

The "regular_subscription_settings" div was already present, so the
only change made was renaming this to "personal_settings".

We also wrap the email and adding of members settings in a new
"subscriber_settings" div.

This is a prep commit which will be helpful when we want to display
only one section and hide the other two.

Co-authored-by: Ryan Rehman <ryanrehman99@gmail.com>
This commit is contained in:
m-e-l-u-h-a-n
2021-07-01 15:04:18 +05:30
committed by Tim Abbott
parent 9cb8e1b286
commit c0afe9d8f4
2 changed files with 53 additions and 50 deletions

View File

@@ -81,9 +81,9 @@ export function update_regular_sub_settings(sub) {
$settings.find(".email-address").text(sub.email_address);
$settings.find(".stream-email-box").show();
}
$settings.find(".regular_subscription_settings").addClass("in");
$settings.find(".personal_settings").addClass("in");
} else {
$settings.find(".regular_subscription_settings").removeClass("in");
$settings.find(".personal_settings").removeClass("in");
// Clear email address widget
$settings.find(".email-address").html("");
}