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)
Sat, Jun 22, 10:23 AM
Unknown Object (File)
Sun, Jun 16, 6:28 AM
Unknown Object (File)
Sat, Jun 15, 10:20 PM
Unknown Object (File)
Sun, Jun 9, 1:13 AM
Unknown Object (File)
Wed, Jun 5, 10:26 PM
Unknown Object (File)
Sun, Jun 2, 10:25 PM
Unknown Object (File)
Sun, Jun 2, 10:25 PM
Unknown Object (File)
Sun, Jun 2, 10:25 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/sidebar/community-creation/community-creation-modal.react.js
196 ↗(On Diff #27977)

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 ↗(On Diff #27977)

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 ↗(On Diff #27977)

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.