[PLT-6969] System console setting for the emoji picker (#6809)

* system console setting for the emoji picker

* remove state.emojiPickerEnable

* update url to /admin_console/customization/emoji
Этот коммит содержится в:
Saturnino Abril
2017-07-06 08:48:34 +08:00
коммит произвёл GitHub
родитель 918ce03622
Коммит 279c7b7fda
15 изменённых файлов: 47 добавлений и 33 удалений

Просмотреть файл

@@ -159,6 +159,7 @@ type ServiceSettings struct {
WebsocketPort *int
WebserverMode *string
EnableCustomEmoji *bool
EnableEmojiPicker *bool
RestrictCustomEmojiCreation *string
RestrictPostDelete *string
AllowEditPost *string
@@ -1032,7 +1033,12 @@ func (o *Config) SetDefaults() {
if o.ServiceSettings.EnableCustomEmoji == nil {
o.ServiceSettings.EnableCustomEmoji = new(bool)
*o.ServiceSettings.EnableCustomEmoji = true
*o.ServiceSettings.EnableCustomEmoji = false
}
if o.ServiceSettings.EnableEmojiPicker == nil {
o.ServiceSettings.EnableEmojiPicker = new(bool)
*o.ServiceSettings.EnableEmojiPicker = false
}
if o.ServiceSettings.RestrictCustomEmojiCreation == nil {