From 0d62ad73d4701b150ba1d5d828ae7a44b42e1390 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 24 Nov 2016 15:31:05 -0500 Subject: [PATCH] FIX: Don't have CPs perform sets --- .../discourse/components/explorer-schema.js.es6 | 13 +++++-------- .../templates/components/explorer-schema.hbs | 2 +- .../discourse/views/admin-plugins-explorer.js.es6 | 1 - 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/assets/javascripts/discourse/components/explorer-schema.js.es6 b/assets/javascripts/discourse/components/explorer-schema.js.es6 index 2965549..c4e7f58 100644 --- a/assets/javascripts/discourse/components/explorer-schema.js.es6 +++ b/assets/javascripts/discourse/components/explorer-schema.js.es6 @@ -122,12 +122,9 @@ export default Ember.Component.extend({ this.set('loading', true); }.observes('filter'), - tables: function() { - if (!this.get('filteredTables')) { - this.set('loading', true); - this.triggerFilter(); - return []; - } - return this.get('filteredTables'); - }.property('transformedSchema', 'filteredTables') + init() { + this._super(); + this.set('loading', true); + this.triggerFilter(); + } }); diff --git a/assets/javascripts/discourse/templates/components/explorer-schema.hbs b/assets/javascripts/discourse/templates/components/explorer-schema.hbs index 82104f4..eb11ee0 100644 --- a/assets/javascripts/discourse/templates/components/explorer-schema.hbs +++ b/assets/javascripts/discourse/templates/components/explorer-schema.hbs @@ -7,7 +7,7 @@ {{conditional-loading-spinner condition=loading}}
diff --git a/assets/javascripts/discourse/views/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/views/admin-plugins-explorer.js.es6 index 0755a45..660bc81 100644 --- a/assets/javascripts/discourse/views/admin-plugins-explorer.js.es6 +++ b/assets/javascripts/discourse/views/admin-plugins-explorer.js.es6 @@ -2,7 +2,6 @@ export default Ember.View.extend({ _onHideSchema: function() { - Em.Logger.log('resizing'); this.appEvents.trigger('ace:resize'); }.observes('controller.hideSchema'),