zulip/static
sahil839 b5dfc02844 hashchange: Fix bug when directly chaning hash in settings overlay.
Reproducer:
* Open the settings overlay from gear menu, the profile (user profile
not organization profile) is opened.
* Note the current hash in browser is "#settings/profile".
* Now directly change the hash to be "#organization/organization-permissions".

You will notice that the content is fine, but there is problem in left
sidebar and the hash. The left sidebar content is still of user
settings and not organization settings and the hash in the browser is
"#settings/organization-permissions".

Now the bug was due to normal_settings.activate_section_or_default
call instead of org_settings.activate_section_or_default.
Calling from normal_settings leads to hash_prefix being "#settings"
which changes the hash in the browser and also toggles the left
sidebar to display settings part instead of organization. The right
section content is of organization-permissions only because it
depends only on section and not prefix.

So, this commit adds a if-else condition deciding what to call based
on the hash.
2021-07-01 17:48:36 -07:00
..
assets zulip-icon: Add zulip-icon as classPrefix for icon. 2021-04-29 09:02:25 -07:00
audio notificaiton_sounds: Add some atonal sounds created by @stwime. 2021-02-05 12:28:20 -08:00
generated
html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
images integrations: Add Freshstatus webhook integration. 2021-05-27 23:38:11 -07:00
js hashchange: Fix bug when directly chaning hash in settings overlay. 2021-07-01 17:48:36 -07:00
shared shared: Bump version to 0.0.6. 2021-06-15 14:40:58 -07:00
styles popovers: Add clear input button to stream search widget. 2021-07-01 14:30:31 -07:00
templates settings_checkbox: Fix incorrect line wrapping in mobile view. 2021-07-01 17:46:26 -07:00
third minor: Simplify usermention regex and properly use capturing groups. 2021-05-20 11:35:04 -07:00
.gitignore dependencies: Replace moment.js with date-fns. 2021-02-05 11:04:32 -08:00