mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Hide affiliations UI behind feature flag.
This commit is contained in:
parent
8ac6f4d6f4
commit
e7f819fbdd
3 changed files with 110 additions and 106 deletions
|
@ -68,6 +68,7 @@ module.exports =
|
|||
shouldAllowEditingDetails: shouldAllowEditingDetails
|
||||
languages: Settings.languages,
|
||||
accountSettingsTabActive: true
|
||||
showAffiliationsUI: (req.query?.aff == "true") or false
|
||||
|
||||
sessionsPage: (req, res, next) ->
|
||||
user = AuthenticationController.getSessionUser(req)
|
||||
|
|
|
@ -9,11 +9,7 @@ block content
|
|||
.page-header
|
||||
h1 #{translate("account_settings")}
|
||||
.account-settings(ng-controller="AccountSettingsController", ng-cloak)
|
||||
form-messages(for="settingsForm")
|
||||
.alert.alert-success(ng-show="settingsForm.response.success")
|
||||
| #{translate("thanks_settings_updated")}
|
||||
form-messages(for="changePasswordForm")
|
||||
div
|
||||
if locals.showAffiliationsUI
|
||||
form.row(
|
||||
ng-controller="UserAffiliationsController"
|
||||
name="affiliationsForm"
|
||||
|
@ -184,6 +180,10 @@ block content
|
|||
i.fa.fa-fw.fa-spin.fa-refresh
|
||||
| Adding...
|
||||
hr
|
||||
form-messages(for="settingsForm")
|
||||
.alert.alert-success(ng-show="settingsForm.response.success")
|
||||
| #{translate("thanks_settings_updated")}
|
||||
form-messages(for="changePasswordForm")
|
||||
|
||||
.row
|
||||
.col-md-5
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
.alert {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
h3 {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#delete-account-modal {
|
||||
|
|
Loading…
Reference in a new issue