mirror of https://github.com/rancher/ui.git
20 lines
563 B
JavaScript
20 lines
563 B
JavaScript
import Resource from 'ember-api-store/models/resource';
|
|
|
|
var HostTemplate = Resource.extend({
|
|
type: 'hosttemplate',
|
|
actions: {
|
|
},
|
|
|
|
availableActions: function() {
|
|
var a = this.get('actionLinks');
|
|
|
|
return [
|
|
{ label: 'action.remove', icon: 'icon icon-trash', action: 'promptDelete', enabled: !!a.remove, altAction: 'delete' },
|
|
{ divider: true },
|
|
{ label: 'action.viewInApi', icon: 'icon icon-external-link',action: 'goToApi', enabled: true},
|
|
];
|
|
}.property('actionLinks.{remove}'),
|
|
});
|
|
|
|
export default HostTemplate;
|