Skip to content

Commit

Permalink
DEV: Update ace-editor usage (#319)
Browse files Browse the repository at this point in the history
AceEditor is now a glimmer component (see: discourse/discourse#28492) and it follows the "data down, actions up" pattern.
  • Loading branch information
CvX authored Aug 27, 2024
1 parent cbae98f commit d31d899
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@
<div class="panels-flex">
<div class="editor-panel">
<AceEditor
{{on "click" this.setDirty}}
@content={{this.selectedItem.sql}}
@onChange={{fn (mut this.selectedItem.sql)}}
@mode="sql"
@disabled={{this.selectedItem.destroyed}}
{{on "click" this.setDirty}}
@save={{this.save}}
@submit={{this.saveAndRun}}
/>
Expand Down

0 comments on commit d31d899

Please sign in to comment.