diff --git a/app/components/edit-stack/component.js b/app/components/edit-stack/component.js index f0d420502..50b13948d 100644 --- a/app/components/edit-stack/component.js +++ b/app/components/edit-stack/component.js @@ -12,10 +12,6 @@ export default ModalBase.extend(NewOrEdit, { actions: { outsideClick() {}, - cancel() { - this.sendAction('dismiss'); - }, - addTag(tag) { let neu = tagsToArray(this.get('primaryResource.group')); neu.addObject(tag); diff --git a/app/models/host.js b/app/models/host.js index bab87c892..503bdba45 100644 --- a/app/models/host.js +++ b/app/models/host.js @@ -64,11 +64,11 @@ var Host = Resource.extend({ out.push({ label: 'action.machineConfig', icon: 'icon icon-download', action: 'machineConfig', enabled: true}); } - out.push({ label: 'action.clone', icon: 'icon icon-copy', action: 'clone', enabled: true }); + out.push({ label: 'action.clone', icon: 'icon icon-copy', action: 'clone', enabled: !!this.get('driver') }); out.push({ label: 'action.edit', icon: 'icon icon-edit', action: 'edit', enabled: !!a.update }); return out; - }.property('actionLinks.{activate,deactivate,remove,purge,update}','links.config'), + }.property('actionLinks.{activate,deactivate,remove,purge,update}','links.config','driver'), displayIp: Ember.computed.alias('agentIpAddress'), diff --git a/translations/pt-br.yaml b/translations/pt-br.yaml index 0c5d17382..107364fb9 100644 --- a/translations/pt-br.yaml +++ b/translations/pt-br.yaml @@ -1,5 +1,5 @@ --- -languageName: Português (BR) +languageName: Português generic: actions: Ações closeModal: Fechar