FEATURE: Sortable json-editor items (#16403)

This commit is contained in:
Keegan George
2022-04-11 10:24:14 -07:00
committed by GitHub
parent 1e436f242e
commit 0a653179a5
2 changed files with 18 additions and 3 deletions
@@ -29,8 +29,9 @@ export default Component.extend({
schema: this.model.jsonSchema,
disable_array_delete_all_rows: true,
disable_array_delete_last_row: true,
disable_array_reorder: true,
disable_array_copy: true,
disable_array_reorder: false,
disable_array_copy: false,
enable_array_copy: true,
disable_edit_json: true,
disable_properties: true,
disable_collapse: true,
@@ -70,8 +71,11 @@ export default Component.extend({
class DiscourseJsonSchemaEditorIconlib {
constructor() {
this.mapping = {
delete: "times",
delete: "trash-alt",
add: "plus",
moveup: "arrow-up",
movedown: "arrow-down",
copy: "copy",
};
}