mirror of https://github.com/zulip/zulip.git
Hide subscription settings on unsubscribe
(imported from commit 28f08ffdf5ffc4af697563df19b4facb28e9c681)
This commit is contained in:
parent
e03fe9e3f1
commit
4dbd51033a
|
@ -146,6 +146,10 @@ function mark_unsubscribed(stream_name) {
|
|||
} else if (sub.subscribed) {
|
||||
sub.subscribed = false;
|
||||
button_for_sub(sub).text("Subscribe").addClass("btn-primary");
|
||||
var settings = settings_for_sub(sub);
|
||||
if (settings.hasClass('in')) {
|
||||
settings.collapse('hide');
|
||||
}
|
||||
} else {
|
||||
// Already unsubscribed
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue