diff --git a/app/controllers/model-types.js b/app/controllers/model-types.js index 0a61599cf3..a9ec0d80d8 100644 --- a/app/controllers/model-types.js +++ b/app/controllers/model-types.js @@ -1,5 +1,5 @@ import Controller from '@ember/controller'; -import { get, computed } from '@ember/object'; +import { action, get, computed } from '@ember/object'; import { sort } from '@ember/object/computed'; import { inject as service } from '@ember/service'; @@ -48,9 +48,14 @@ export default Controller.extend({ return true; } }); - }) -}); + }), + getStore: action(function() { + this.port.send('objectInspector:inspectByContainerLookup', { + name: 'service:store' + }); + }), +}); /** * Returns whether or not a given key has been set in storage. * @param {*} storage diff --git a/app/templates/model-types-toolbar.hbs b/app/templates/model-types-toolbar.hbs index 8d5af0775f..3c2f2c5f2b 100644 --- a/app/templates/model-types-toolbar.hbs +++ b/app/templates/model-types-toolbar.hbs @@ -26,4 +26,8 @@ Order Models By Record Count +