mirror of https://github.com/zulip/zulip.git
subs: Remove default selected tab in subscriptions modal.
Earlier, on opening the subs modal, the "Subscribed" tab would be selected by default when the components.toggle was created for tab switching. This would change the hash to `#streams/subscribed`, and then extra work had to be done to change it back to `#streams/all` leading to a longer open times. With this change, `#streams` and `#streams/subscribed` both take you to the "Subscribed Tab", and `#streams/all` takes you directly to the "All Streams" tab.
This commit is contained in:
parent
0f34e2fe3c
commit
bcab6748ff
|
@ -503,7 +503,6 @@ exports.setup_page = function (callback) {
|
||||||
{ label: i18n.t("Subscribed"), key: "subscribed" },
|
{ label: i18n.t("Subscribed"), key: "subscribed" },
|
||||||
{ label: i18n.t("All streams"), key: "all-streams" },
|
{ label: i18n.t("All streams"), key: "all-streams" },
|
||||||
],
|
],
|
||||||
selected: 0,
|
|
||||||
callback: function (value, key) {
|
callback: function (value, key) {
|
||||||
// if you aren't on a particular stream (`streams/:id/:name`)
|
// if you aren't on a particular stream (`streams/:id/:name`)
|
||||||
// then redirect to `streams/all` when you click "all-streams".
|
// then redirect to `streams/all` when you click "all-streams".
|
||||||
|
|
Loading…
Reference in New Issue