mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Replace underscore with space when showing site setting names
This commit is contained in:
@@ -31,6 +31,15 @@ Discourse.SiteSetting = Discourse.Model.extend({
|
||||
|
||||
}.property('value'),
|
||||
|
||||
/**
|
||||
The name of the setting. Basically, underscores in the setting key are replaced with spaces.
|
||||
|
||||
@property settingName
|
||||
**/
|
||||
settingName: function() {
|
||||
return this.get('setting').replace(/\_/g, ' ');
|
||||
}.property('setting'),
|
||||
|
||||
/**
|
||||
Has the user changed the setting? If so we should save it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user