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:
parent
cbae98f6ed
commit
d31d89942e
|
@ -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}}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue