diff --git a/app/controllers/container-type.js b/app/controllers/container-type.js index 57fdcd23d0..f6e7a3a4fb 100644 --- a/app/controllers/container-type.js +++ b/app/controllers/container-type.js @@ -1,4 +1,4 @@ -import { get, computed } from '@ember/object'; +import { action, get, computed } from '@ember/object'; import Controller, { inject as controller } from '@ember/controller'; import debounceComputed from 'ember-inspector/computed/debounce'; import searchMatch from 'ember-inspector/utils/search-match'; @@ -34,22 +34,23 @@ export default Controller.extend({ this.sortProperties = ['name']; }, - actions: { - /** - * Inspect an instance in the object inspector. - * Called whenever an item in the list is clicked. - * - * @method inspectInstance - * @param {Object} obj - */ - inspectInstance(obj) { - if (!get(obj, 'inspectable')) { - return; - } - this.port.send('objectInspector:inspectByContainerLookup', { name: get(obj, 'fullName') }); - }, - sendContainerToConsole() { - this.port.send('objectInspector:sendContainerToConsole'); + /** + * Inspect an instance in the object inspector. + * Called whenever an item in the list is clicked. + * + * @method inspectInstance + * @param {Object} obj + */ + inspectInstance: action(function(obj) { + if (!get(obj, 'inspectable')) { + return; } - } + this.port.send('objectInspector:inspectByContainerLookup', { + name: get(obj, 'fullName') + }); + }), + + sendContainerToConsole: action(function() { + this.port.send('objectInspector:sendContainerToConsole'); + }), }); diff --git a/app/controllers/container-types/index.js b/app/controllers/container-types/index.js index e9f948389b..7079cf9e22 100644 --- a/app/controllers/container-types/index.js +++ b/app/controllers/container-types/index.js @@ -1,9 +1,8 @@ +import { action } from '@ember/object'; import Controller from '@ember/controller'; export default Controller.extend({ - actions: { - sendContainerToConsole() { - this.port.send('objectInspector:sendContainerToConsole'); - } - } + sendContainerToConsole: action(function() { + this.port.send('objectInspector:sendContainerToConsole'); + }) }); diff --git a/app/templates/components/item-types.hbs b/app/templates/components/item-types.hbs index 787839d4dd..a46a8d4b09 100644 --- a/app/templates/components/item-types.hbs +++ b/app/templates/components/item-types.hbs @@ -1,25 +1,25 @@
{{#draggable-column classes="split__panel split__panel--sidebar-2 nav" - setIsDragging=setIsDragging - width=width + setIsDragging=@setIsDragging + width=@width }}
-

{{header}}

+

{{@header}}