2
0
Fork 0
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:
Isaac Janzen 2025-10-02 12:11:42 -05:00 committed by GitHub
parent 349de971c3
commit cba86cc0de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"}}
/>