Hide affiliations UI behind feature flag.

This commit is contained in:
Paulo Reis 2018-06-25 17:06:23 +01:00
parent 8ac6f4d6f4
commit e7f819fbdd
3 changed files with 110 additions and 106 deletions

View file

@ -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)

View file

@ -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

View file

@ -2,6 +2,9 @@
.alert {
margin-bottom: 0;
}
h3 {
margin-top: 0;
}
}
#delete-account-modal {