mirror of https://github.com/rancher/dashboard.git
23 lines
471 B
JavaScript
23 lines
471 B
JavaScript
import NormanModel from '@/plugins/steve/norman-class';
|
|
|
|
export default class EtcdBackup extends NormanModel {
|
|
get _availableActions() {
|
|
const out = super._availableActions;
|
|
|
|
const restore = {
|
|
action: 'promptRestore',
|
|
enabled: true,
|
|
icon: 'icon icon-fw icon-backup-restore',
|
|
label: 'Restore'
|
|
};
|
|
|
|
out.unshift(restore);
|
|
|
|
return out;
|
|
}
|
|
|
|
promptRestore() {
|
|
this.$dispatch('promptRestore', [this]);
|
|
}
|
|
}
|