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:
Sampriti Panda 2018-07-26 07:22:35 +05:30 committed by Tim Abbott
parent 0f34e2fe3c
commit bcab6748ff
1 changed files with 0 additions and 1 deletions

View File

@ -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".