mirror of https://github.com/zulip/zulip.git
4e786293ae
This commit adds a subscription widget to the user profile, including the logic to prevent non-admin users from seeing the subscription widget of other users. Additionally, as it is not possible to subscribe generic bots to streams, and the user should not be a deactivated user, we check for these conditions before displaying the subscription widget. To ensure that the alert for both subscribing and unsubscribing appears on top of the subscribe widget, changed the location of the alert to be displayed at the top. Additionally, considering that no stream will be initially selected, we have made the decision to disable the subscribe button. Once the user selects a stream, we will enable the subscribe button accordingly. Changed the add_user_ids_to_stream function inside subscriber_api.js to support self subscribe also, so that we don't have to duplicate the logic in user_profile.js Created a separate file for the subscribe widget called user_profile_subscribe_widget.hbs. Fixes: #18883 |
||
---|---|---|
.. | ||
portico | ||
alerts.css | ||
app_components.css | ||
components.css | ||
compose.css | ||
dark_theme.css | ||
drafts.css | ||
hotspots.css | ||
image_upload_widget.css | ||
informational_overlays.css | ||
input_pill.css | ||
left_sidebar.css | ||
lightbox.css | ||
message_edit_history.css | ||
message_row.css | ||
modal.css | ||
popovers.css | ||
print.css | ||
progress_bar.css | ||
pygments.css | ||
reactions.css | ||
recent_view.css | ||
rendered_markdown.css | ||
right_sidebar.css | ||
scheduled_messages.css | ||
search.css | ||
settings.css | ||
subscriptions.css | ||
tooltips.css | ||
typing_notifications.css | ||
user_circles.css | ||
user_status.css | ||
widgets.css | ||
zulip.css |