FIX: prevents egression mutating read only object
This commit is contained in:
@@ -11,7 +11,7 @@ export default Ember.Component.extend({
|
||||
$(this.element)
|
||||
.find(".schema-table-name")
|
||||
.click(e => {
|
||||
this.set("open", !this.open);
|
||||
this.set("table.open", !this.table.open);
|
||||
e.preventDefault();
|
||||
});
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="schema-table-name">
|
||||
{{#if table.open}}
|
||||
{{#if open}}
|
||||
{{d-icon "caret-down"}}
|
||||
{{else}}
|
||||
{{d-icon "caret-right"}}
|
||||
@@ -7,7 +7,7 @@
|
||||
{{table.name}}
|
||||
</div>
|
||||
<div class="schema-table-cols">
|
||||
{{#if table.open}}
|
||||
{{#if open}}
|
||||
<dl>
|
||||
{{#each table.columns as |col|}}
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user