mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 00:13:41 +08:00
e7f539df10
Why this change? Prior to this change, there is no description being displayed for objects typed theme setting because we were rendering a button instead of the components for the various setting types which will render the setting's description. What does this change do? 1. Introduce `SiteSettings::Description` compoment to centralise the HTML being rendered across all settings component. 2. Renders the `SiteSettings::Description` component after the edit button in `site_setting.hbs`.
35 lines
799 B
YAML
35 lines
799 B
YAML
objects_setting:
|
|
description:
|
|
en: "This is a description for objects setting"
|
|
type: objects
|
|
default:
|
|
- name: "section 1"
|
|
links:
|
|
- name: "link 1"
|
|
url: "http://example.com"
|
|
- name: "link 2"
|
|
url: "http://example.com"
|
|
- name: "section 2"
|
|
links:
|
|
- name: "link 3"
|
|
url: "http://example.com"
|
|
- name: "link 4"
|
|
url: "http://example.com"
|
|
schema:
|
|
name: sections
|
|
properties:
|
|
name:
|
|
type: string
|
|
required: true
|
|
links:
|
|
type: objects
|
|
schema:
|
|
name: link
|
|
properties:
|
|
name:
|
|
type: string
|
|
required: true
|
|
validations:
|
|
max_length: 20
|
|
url:
|
|
type: string |