Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api_key_modal: Place the error element at the top of the modal.

Ganesh Pawar84ed22d59a46
diff --git a/static/styles/settings.css b/static/styles/settings.css
index ed7f9b56fb0..5d4c7420420 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -994,7 +994,7 @@ input[type="checkbox"] {
}
#api_key_status {
- margin: 0;
+ margin: 0 0 10px;
}
#download_zuliprc {
diff --git a/static/templates/settings/api_key_modal.hbs b/static/templates/settings/api_key_modal.hbs
index 8d43e3b8579..baec247a8dc 100644
--- a/static/templates/settings/api_key_modal.hbs
+++ b/static/templates/settings/api_key_modal.hbs
@@ -9,6 +9,7 @@
</header>
<main class="modal__content">
<div id="password_confirmation">
+ <span class="alert-notification" id="api_key_status"></span>
<div id="api_key_form">
<p>{{t "Please re-enter your password to confirm your identity." }}
<a href="/accounts/password/reset/" target="_blank" rel="noopener noreferrer">
@@ -21,7 +22,6 @@
<i class="fa fa-eye-slash password_visibility_toggle tippy-zulip-tooltip" role="button"></i>
</div>
</div>
- <span class="alert-notification" id="api_key_status"></span>
</div>
<div id="show_api_key">
<p>{{t "Your API key:" }}</p>