mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
d2596c3c4c
boolean to avoid locking yourself out by setting access_password to empty string. Minor UI tweaks.
22 lines
592 B
JavaScript
22 lines
592 B
JavaScript
/**
|
|
A view to display a site setting with edit controls
|
|
|
|
@class SiteSettingView
|
|
@extends Discourse.View
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.SiteSettingView = Discourse.View.extend({
|
|
classNameBindings: [':row', ':setting', 'content.overridden'],
|
|
|
|
templateName: function() {
|
|
|
|
// If we're editing a boolean, return a different template
|
|
if (this.get('content.type') === 'bool') return 'admin/templates/site_settings/setting_bool'
|
|
|
|
// Default to string editor
|
|
return 'admin/templates/site_settings/setting_string';
|
|
|
|
}.property('content.type')
|
|
|
|
});
|