FIX: importing query was broken

This commit is contained in:
Arpit Jalan 2017-04-04 14:07:07 +05:30
parent 1e19c0ef5d
commit 0d6af9d920

View File

@ -4,7 +4,7 @@ import { popupAjaxError } from 'discourse/lib/ajax-error';
export default Ember.Controller.extend(ModalFunctionality, { export default Ember.Controller.extend(ModalFunctionality, {
notReady: Em.computed.not('ready'), notReady: Em.computed.not('ready'),
needs: ['admin-plugins-explorer'], adminPluginsExplorer: Ember.inject.controller(),
ready: function() { ready: function() {
let parsed; let parsed;
@ -30,7 +30,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
self.send('closeModal'); self.send('closeModal');
self.set('loading', false); self.set('loading', false);
const parentController = self.get('controllers.admin-plugins-explorer'); const parentController = self.get('adminPluginsExplorer');
parentController.addCreatedRecord(query.target); parentController.addCreatedRecord(query.target);
}).catch(popupAjaxError); }).catch(popupAjaxError);
} }