Page MenuHomePhabricator

[web] Style and disable "Save Avatar" button when `userAvatarSaveInProgress`
ClosedPublic

Authored by atul on Jun 21 2023, 12:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 9:25 AM
Unknown Object (File)
Sat, Nov 23, 1:47 PM
Unknown Object (File)
Sat, Nov 23, 1:11 PM
Unknown Object (File)
Sat, Nov 23, 1:11 PM
Unknown Object (File)
Sat, Nov 23, 1:11 PM
Unknown Object (File)
Sat, Nov 23, 1:10 PM
Unknown Object (File)
Sat, Nov 23, 1:10 PM
Unknown Object (File)
Sat, Nov 9, 7:12 PM
Subscribers

Details

Summary
  1. Show spinner when save avatar request is in progress.
  2. Disable button when save avatar request is in progress.
  3. Sneak in disable button change for CommunityCreationModal

Depends on D8278

Test Plan

Works as expected:

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/sidebar/community-creation/community-creation-modal.react.js
196

Sorry snuck this quick change in here to keep things symmetrical

atul published this revision for review.Jun 21 2023, 12:57 PM
web/avatars/emoji-avatar-selection-modal.react.js
106–107

The video looks good, just wondering if saveButtonContent meant to be inside of the div?

web/avatars/emoji-avatar-selection-modal.react.js
106–107

Yeah, fixed this in next diff. I'll rebase and fix it here instead

This revision is now accepted and ready to land.Jun 22 2023, 7:25 AM
This revision was landed with ongoing or failed builds.Jun 23 2023, 2:07 PM
This revision was automatically updated to reflect the committed changes.