1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

create conditional to not display third party login block

This commit is contained in:
John Mitchell 2015-09-23 17:43:35 -04:00
parent 25132b5daa
commit 4980c2145c
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,8 @@ export default
// controller: authenticationController,
templateUrl: templateUrl('login/thirdPartySignOn'),
link: function(scope, element, attrs) {
// these vars will be set programatically once
// api stuff lands
scope.loginItems = [
{
type: "foo",
@ -34,6 +36,8 @@ export default
tooltip: "Login in via SAML"
}
]
scope.thirdPartyLoginSupported = true;
}
};
}

View File

@ -1,4 +1,4 @@
<div class="ThirdPartySignOn">
<div class="ThirdPartySignOn" ng-if="thirdPartyLoginSupported">
<div class="ThirdPartySignOn-label">
Sign In With
</div>