Merge pull request #1802 from overleaf/jel-oauth-hide-when-not-linked

OAuth provider check and capitalize button text

GitOrigin-RevId: afa2e8301d5141da178d88304932c5736d8632c4
This commit is contained in:
nate stemen 2019-06-03 14:17:33 -04:00 committed by sharelatex
parent 1a3b21b3f1
commit 642081dd17

View file

@ -6,8 +6,8 @@ block scripts
mixin providerList() mixin providerList()
ul.list-like-table ul.list-like-table
li(ng-repeat="(key, provider) in providers") li(ng-repeat="(key, provider) in providers" ng-if="!provider.hideWhenNotLinked || (key == 'collabratec' && v2ThirdPartyIds[key]) || (provider.hideWhenNotLinked && thirdPartyIds[key])")
.row(ng-if="key != 'collabratec' || (key == 'collabratec' && v2ThirdPartyIds[key])") .row
.col-xs-12.col-sm-8.col-md-10 .col-xs-12.col-sm-8.col-md-10
h4 {{provider.name}} h4 {{provider.name}}
p.small(ng-bind-html="provider.description") p.small(ng-bind-html="provider.description")
@ -21,7 +21,7 @@ mixin providerList()
span(ng-if="!providers[key].ui.isProcessing") #{translate("unlink")} span(ng-if="!providers[key].ui.isProcessing") #{translate("unlink")}
span(ng-if="providers[key].ui.isProcessing") #{translate("processing")} span(ng-if="providers[key].ui.isProcessing") #{translate("processing")}
//- Link //- Link
a.btn.btn-primary( a.btn.btn-primary.text-capitalize(
href="{{provider.linkPath}}?intent=link" href="{{provider.linkPath}}?intent=link"
ng-if="!thirdPartyIds[key] && !provider.hideWhenNotLinked" ng-if="!thirdPartyIds[key] && !provider.hideWhenNotLinked"
) #{translate("link")} ) #{translate("link")}