FIX: importing query was broken

This commit is contained in:
Arpit Jalan 2017-04-04 14:07:07 +05:30
parent 1e19c0ef5d
commit 0d6af9d920
1 changed files with 2 additions and 2 deletions

View File

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