FIX: Don't have CPs perform sets

This commit is contained in:
Robin Ward 2016-11-24 15:31:05 -05:00
parent f9e1177981
commit 0d62ad73d4
3 changed files with 6 additions and 10 deletions

View File

@ -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')
}); });

View File

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

View File

@ -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'),