mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
gear_menu: Link to /devlogin/ in development environment.
It’d be nicer to use hash_util.build_login_link which also remembers the current hash, but that doesn’t help when the gear menu is only rendered once at page load time. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5a9cba1bba
commit
ddcd69cb41
@@ -104,6 +104,7 @@ export function initialize() {
|
|||||||
can_invite_others_to_realm: settings_data.user_can_invite_others_to_realm(),
|
can_invite_others_to_realm: settings_data.user_can_invite_others_to_realm(),
|
||||||
corporate_enabled: page_params.corporate_enabled,
|
corporate_enabled: page_params.corporate_enabled,
|
||||||
is_guest: page_params.is_guest,
|
is_guest: page_params.is_guest,
|
||||||
|
login_link: page_params.development_environment ? "/devlogin/" : "/login/",
|
||||||
promote_sponsoring_zulip: page_params.promote_sponsoring_zulip,
|
promote_sponsoring_zulip: page_params.promote_sponsoring_zulip,
|
||||||
show_billing: page_params.show_billing,
|
show_billing: page_params.show_billing,
|
||||||
show_plans: page_params.show_plans,
|
show_plans: page_params.show_plans,
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<li role="presentation" class="only-visible-for-spectators">
|
<li role="presentation" class="only-visible-for-spectators">
|
||||||
<a href="/login" role="menuitem">
|
<a href="{{login_link}}" role="menuitem">
|
||||||
<i class="fa fa-sign-in" aria-hidden="true"></i> {{t 'Log in' }}
|
<i class="fa fa-sign-in" aria-hidden="true"></i> {{t 'Log in' }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user