mirror of https://github.com/rancher/ui.git
commit
9ea2f7db78
|
|
@ -12,10 +12,6 @@ export default ModalBase.extend(NewOrEdit, {
|
||||||
actions: {
|
actions: {
|
||||||
outsideClick() {},
|
outsideClick() {},
|
||||||
|
|
||||||
cancel() {
|
|
||||||
this.sendAction('dismiss');
|
|
||||||
},
|
|
||||||
|
|
||||||
addTag(tag) {
|
addTag(tag) {
|
||||||
let neu = tagsToArray(this.get('primaryResource.group'));
|
let neu = tagsToArray(this.get('primaryResource.group'));
|
||||||
neu.addObject(tag);
|
neu.addObject(tag);
|
||||||
|
|
|
||||||
|
|
@ -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.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 });
|
out.push({ label: 'action.edit', icon: 'icon icon-edit', action: 'edit', enabled: !!a.update });
|
||||||
|
|
||||||
return out;
|
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'),
|
displayIp: Ember.computed.alias('agentIpAddress'),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
languageName: Português (BR)
|
languageName: Português
|
||||||
generic:
|
generic:
|
||||||
actions: Ações
|
actions: Ações
|
||||||
closeModal: Fechar
|
closeModal: Fechar
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue