FIX: prevents egression mutating read only object

This commit is contained in:
Joffrey JAFFEUX 2019-07-25 07:50:31 +02:00
parent 8f0bd298b1
commit 677722d676
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ export default Ember.Component.extend({
$(this.element) $(this.element)
.find(".schema-table-name") .find(".schema-table-name")
.click(e => { .click(e => {
this.set("open", !this.open); this.set("table.open", !this.table.open);
e.preventDefault(); e.preventDefault();
}); });
}, },

View File

@ -1,5 +1,5 @@
<div class="schema-table-name"> <div class="schema-table-name">
{{#if table.open}} {{#if open}}
{{d-icon "caret-down"}} {{d-icon "caret-down"}}
{{else}} {{else}}
{{d-icon "caret-right"}} {{d-icon "caret-right"}}
@ -7,7 +7,7 @@
{{table.name}} {{table.name}}
</div> </div>
<div class="schema-table-cols"> <div class="schema-table-cols">
{{#if table.open}} {{#if open}}
<dl> <dl>
{{#each table.columns as |col|}} {{#each table.columns as |col|}}
<div> <div>