YJDave
82c8d43209
custom profile data: Enable user to edit custom field's value in settings.
...
This will enable user to edit the value of custom fields from
user settings.
2018-03-21 16:08:12 -07:00
YJDave
b404d0e156
custom profile data: Set custom field's values in user setting page on load.
...
Set realm custom field's values for current user in user setting page
when page gets load.
2018-03-21 16:08:12 -07:00
YJDave
3b8c2e45be
user settings: Fix user avatar not updated in settings page.
...
On uploading new avatar, user avatar in settings page doesn't
get updated. Cause we have set `src` attribute of wrong html
element instead of image element in user settings page.
Fixes #8680 .
2018-03-13 10:57:36 -07:00
Rhea Parekh
416f11030f
user settings: Display avatar source.
...
This makes it easier for users to tell how Zulip ended up with an
avatar for them without them uploading one: through the Gravatar
service used across many Wordpress blogs.
Fixes #8225 .
2018-03-05 09:12:59 -08:00
Tim Abbott
92ba40b0c7
settings: Use .attr() properly for disabling name/email change.
...
It turns out the consistent `.prop()` approach I switched to a few
commits back didn't actually work. Instead, we establish consistency
by always using `.attr`, which does.
Usually, I'd go back and fix the older commits, but in this case it
feels not worth it.
2018-03-02 12:49:46 -08:00
Tim Abbott
72a31150f7
settings: Move name/email change display commits to correct file.
...
These most properly belong in settings_account.js, since they are
updating the UI widgets on that page.
2018-03-02 12:49:36 -08:00
YJDave
ce46cd914a
settings: Allow admin to change email/name even if it is disabled in realm.
...
Allow realm admin users to change their email or name even,
changing name or email is disabled in realm.
2018-03-02 12:17:00 -08:00
Aastha Gupta
2f99e6b7b2
settings: Add loading indicator for account deactivation.
...
Fixes #8175 .
2018-02-23 08:20:45 -08:00
YJDave
32ede6a355
settings: Restrict opening full name and email change overlay modal.
...
Set condition before opening full name and email change overlay modal,
to check whether changing full name or email is allowed in realm.
2018-02-02 17:50:37 -08:00
Tim Abbott
ef42bb2e73
settings: Fix real-time sync for account settings.
...
This restores the property that changing one's name in on browser's
"account settings" also changes the user's name in other browser windows'
"account settings" pages.
2018-02-01 16:38:26 -08:00
YJDave
7e8da54209
settings: Move full name setting UI into modal.
...
This makes this UI widget more consistent with its neighbors.
tabbott: This introduces a bug with how the `full_name_field` HTML is
managed; it should be done via the `server_events.js` handler.
2018-02-01 16:08:07 -08:00
YJDave
8582e757cd
settings: Improve email change modal in user setting.
...
- On error, do not close the modal and show the error in the modal.
- Change the order of the `Cancel` and `Change` buttons.
2018-02-01 16:08:07 -08:00
YJDave
21cbdfdb79
settings: Improve password change modal UI.
...
- When password fields are cleared, update password strength bar.
- On data dismiss, clear password fields.
- Exclude forgot-password div from focus.
- On enter key, modal should be submitted not dismissed.
- Change password btn text from "Change password" to "*****"
2018-02-01 16:08:07 -08:00
YJDave
2ca0fb4128
user setting: Move password change flow in UI into modal.
...
Thanks to @brokwhittaker for his significant chagnes in
password modal design.
2018-01-23 14:40:47 -05:00
Brock Whittaker
ffe3a6c127
settings: Remove password confirmation in modal.
...
This removes the requirement to confirm your new password.
It isn't necessary and can be fixed easily with an email
reset if messed up.
2018-01-23 14:38:59 -05:00
Steve Howell
567da076ad
i18n: Translate strings in settings_account.js.
2017-11-07 09:52:20 -08:00
Vishnu Ks
94cb5b854f
frontend: Show info on /emails only in dev env.
2017-10-04 14:45:08 -07:00
Vishnu Ks
80fc9cda3a
settings: Mention about /emails after sending change email mail.
2017-10-04 08:20:29 -07:00
Cynthia Lin
f697e6bb0e
modals: Implement new modal methods.
2017-09-06 09:35:16 -07:00
Brock Whittaker
41f395caf1
your-account: Change "no changes made" error to success.
...
This changes the alert error "Error changing settings: No new data
supplied" to "No changes made" as a success bar.
2017-08-09 19:46:43 -07:00
Tim Abbott
1e5aee054b
settings: Migrate main settings-change code to API.
...
This was one of the few major remaining endpoints that were still on
the old-style legacy API.
2017-07-31 13:08:06 -07:00
Vishnu Ks
9067890120
urls: Use POST for zerver.views.user_settings.set_avatar_backend.
...
The set_avatar_backend is changed from PUT to POST becuase this
is not idempotent.
2017-07-07 10:31:43 -07:00
Brock Whittaker
1b616d761e
settings: Fix email input whitespace issue.
...
This fixes the issue where the email has whitespace potentially in the
input due to the HTML formatting.
2017-07-05 17:45:30 -07:00
Harshit Bansal
6615f2f2e8
common.js: Migrate `common.js` module to use IIFE module style.
...
This module was exposing its functions as globals. This PR fixes
it use the IIFE module style that we use in our other modules.
2017-06-22 19:06:32 -04:00
vaibhav
d9bc3932ec
settings: Move "download personal API key" from "your-bots" to "your account"
...
Fixes : #5355 .
2017-06-20 15:46:23 -04:00
Tim Abbott
72720fcf2e
settings: Remove obsolete message_viewport.scrollTop() calls.
...
These date from long before the settings UI was restructured as an
overlay. Now, instead of ensuring that error messages are visible,
they just scroll the message feed incorrectly.
Fixes #4810 .
2017-05-16 20:33:52 -07:00
fionabunny
b7c6d46bf9
home.py: move password_auth_enabled as realm_password_auth_enabled.
...
Part of #3853 .
2017-04-28 21:23:48 -07:00
fionabunny
635a05fe80
home.py: move name_changes_disabled as realm_name_changes_disabled.
...
This appears to have been partially completed prior. Part of #3853 .
2017-04-28 21:12:23 -07:00
Steve Howell
47bdecdc4f
Extract settings_account.js.
...
This code handles the settings pane for "Your account," which
has email/name/password/avatar/etc.
2017-04-06 11:28:36 -07:00