mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: support SSO website and location overrides
Add location and website + the ability to override using SSO using the `sso_overrides_location` and `sso_overrides_website` site settings.
This commit is contained in:
@@ -48,6 +48,16 @@ export default Controller.extend({
|
||||
return canChangeBio;
|
||||
},
|
||||
|
||||
@discourseComputed("model.can_change_location")
|
||||
canChangeLocation(canChangeLocation) {
|
||||
return canChangeLocation;
|
||||
},
|
||||
|
||||
@discourseComputed("model.can_change_website")
|
||||
canChangeWebsite(canChangeWebsite) {
|
||||
return canChangeWebsite;
|
||||
},
|
||||
|
||||
actions: {
|
||||
showFeaturedTopicModal() {
|
||||
showModal("feature-topic-on-profile", {
|
||||
|
||||
@@ -17,19 +17,23 @@
|
||||
{{d-button icon="globe" label="user.use_current_timezone" action=(action "useCurrentTimezone") }}
|
||||
</div>
|
||||
|
||||
<div class="control-group pref-location">
|
||||
<label class="control-label">{{i18n "user.location"}}</label>
|
||||
<div class="controls">
|
||||
{{input type="text" value=model.location class="input-xxlarge" id="edit-location"}}
|
||||
{{#if model.can_change_location}}
|
||||
<div class="control-group pref-location">
|
||||
<label class="control-label">{{i18n "user.location"}}</label>
|
||||
<div class="controls">
|
||||
{{input type="text" value=model.location class="input-xxlarge" id="edit-location"}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="control-group pref-website">
|
||||
<label class="control-label">{{i18n "user.website"}}</label>
|
||||
<div class="controls">
|
||||
{{input type="text" value=model.website class="input-xxlarge"}}
|
||||
{{#if model.can_change_website}}
|
||||
<div class="control-group pref-website">
|
||||
<label class="control-label">{{i18n "user.website"}}</label>
|
||||
<div class="controls">
|
||||
{{input type="text" value=model.website class="input-xxlarge"}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#each userFields as |uf|}}
|
||||
<div class="control-group">
|
||||
|
||||
Reference in New Issue
Block a user