discourse/app/assets/javascripts/admin/addon/components/schema-setting
Guhyoun Nam fdaa2333c3
DEV: Add delete confirm message on schema setting editor (#35330)
## Background

Add an delete confirmation dialog prior to deleting a data, since this
action is high-impact and irreversible.

## Changes 

This PR adds confirm message when deleting data from schema setting.
This message only shows up if the ` deleteWarning` is set.
Admins can set the title and/or the message of the confirm dialog:

```
site_setting_name:
  type: objects
  schema:
    name: "name"
    deleteWarning:
      title: "Delete this data?"
      message: "This will also remove all contents."
    properties:
      ...
```

<img width="791" height="225" alt="Screenshot 2025-10-10 at 1 51 14 PM"
src="https://github.com/user-attachments/assets/4718960e-ae20-441d-a71b-970ea6190775"
/>
2025-10-10 14:50:10 -05:00
..
editor
types DEV: Add every_tag option to tags schema-setting (#35153) 2025-10-02 12:11:42 -05:00
editor.gjs DEV: Add delete confirm message on schema setting editor (#35330) 2025-10-10 14:50:10 -05:00
field-input-description.gjs
field.gjs
number-field.gjs