mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-16 16:34:47 +00:00
FIX: importing query was broken
This commit is contained in:
parent
1e19c0ef5d
commit
0d6af9d920
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user