Page MenuHomePhabricator

Don't show an auth provider as enabled if it's still being created
ClosedPublic

Authored by amckinley on Feb 11 2017, 12:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 30, 1:03 AM
Unknown Object (File)
Wed, Dec 18, 6:30 PM
Unknown Object (File)
Dec 12 2024, 9:59 AM
Unknown Object (File)
Dec 8 2024, 3:50 PM
Unknown Object (File)
Dec 6 2024, 6:11 AM
Unknown Object (File)
Dec 3 2024, 12:18 PM
Unknown Object (File)
Dec 2 2024, 6:04 AM
Unknown Object (File)
Oct 26 2024, 2:04 PM
Subscribers

Details

Test Plan

attempted to create a new auth provider; observed that "enabled" ui element does not render. viewed existing auth provider and observed that "enabled" ui element still renders

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Maybe a little simpler like this? Should be the same logically, I think.

if (!$is_new) {
  if ($config->getIsEnabled()) {
    // ...
  } else {
    // ...
  }
}
This revision now requires changes to proceed.Feb 11 2017, 1:04 AM

(I'll just tweak that in the pull.)

This revision is now accepted and ready to land.Feb 13 2017, 3:02 PM
This revision was automatically updated to reflect the committed changes.