mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +08:00
DEV: Add every_tag
option to tags schema-setting (#35153)
Allows for surfacing all tags by adding a `every_tag` option to the `tags` property. This value is then passed to the `everyTag` option on the `TagChooser` component Demo: ```yml type: objects client: true default: "[]" schema: name: "state" properties: tags: type: tags min: 2 every_tag: true ``` Defaults to `false` (current behavior)
This commit is contained in:
parent
349de971c3
commit
cba86cc0de
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ export default class SchemaSettingTypeTags extends SchemaSettingTypeModels {
|
|||
@tags={{this.value}}
|
||||
@onChange={{this.onInput}}
|
||||
@options={{this.tagChooserOption}}
|
||||
@everyTag={{@spec.every_tag}}
|
||||
class={{if this.validationErrorMessage "--invalid"}}
|
||||
/>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue