FIX: Don't have CPs perform sets
This commit is contained in:
parent
f9e1177981
commit
0d62ad73d4
|
@ -122,12 +122,9 @@ export default Ember.Component.extend({
|
||||||
this.set('loading', true);
|
this.set('loading', true);
|
||||||
}.observes('filter'),
|
}.observes('filter'),
|
||||||
|
|
||||||
tables: function() {
|
init() {
|
||||||
if (!this.get('filteredTables')) {
|
this._super();
|
||||||
this.set('loading', true);
|
this.set('loading', true);
|
||||||
this.triggerFilter();
|
this.triggerFilter();
|
||||||
return [];
|
}
|
||||||
}
|
|
||||||
return this.get('filteredTables');
|
|
||||||
}.property('transformedSchema', 'filteredTables')
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{conditional-loading-spinner condition=loading}}
|
{{conditional-loading-spinner condition=loading}}
|
||||||
<div class="schema-container">
|
<div class="schema-container">
|
||||||
<ul>
|
<ul>
|
||||||
{{#each tables as |table|}}
|
{{#each filteredTables as |table|}}
|
||||||
{{explorer-schema-onetable table=table}}
|
{{explorer-schema-onetable table=table}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
export default Ember.View.extend({
|
export default Ember.View.extend({
|
||||||
|
|
||||||
_onHideSchema: function() {
|
_onHideSchema: function() {
|
||||||
Em.Logger.log('resizing');
|
|
||||||
this.appEvents.trigger('ace:resize');
|
this.appEvents.trigger('ace:resize');
|
||||||
}.observes('controller.hideSchema'),
|
}.observes('controller.hideSchema'),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue