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