DEV: Update ace-editor usage (#319)

AceEditor is now a glimmer component (see: https://github.com/discourse/discourse/pull/28492) and it follows the "data down, actions up" pattern.
This commit is contained in:
Jarek Radosz 2024-08-27 13:42:25 +02:00 committed by GitHub
parent cbae98f6ed
commit d31d89942e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

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