import { alias, notEmpty } from '@ember/object/computed'; import Component from '@ember/component'; import layout from './template'; import { inject as service } from '@ember/service' export default Component.extend({ layout, scope: service(), settings: service(), cluster: alias('scope.currentCluster'), canCreate: notEmpty('cluster.registrationToken.hostCommand'), canImport: notEmpty('cluster.registrationToken.clusterCommand'), header: true, });