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
F13079104: D17337.id41706.diff
Tue, Apr 23, 9:04 PM
F13079103: D17337.id41696.diff
Tue, Apr 23, 9:04 PM
F13079102: D17337.id.diff
Tue, Apr 23, 9:04 PM
F13079101: D17337.diff
Tue, Apr 23, 9:04 PM
Unknown Object (File)
Sun, Apr 21, 3:57 PM
Unknown Object (File)
Wed, Apr 17, 3:03 PM
Unknown Object (File)
Thu, Apr 11, 7:13 AM
Unknown Object (File)
Mon, Apr 8, 9:21 AM
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
Branch
master
Lint
Lint Passed
Unit
Tests Skipped
Build Status
Buildable 15593
Build 20575: arc lint + arc unit

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.