mirror of https://github.com/rancher/ui.git
Delete host instead of machine
This commit is contained in:
parent
e730ee12ac
commit
83ab669aba
|
|
@ -12,18 +12,6 @@ var HostController = Cattle.TransitioningResourceController.extend(DownloadMachi
|
||||||
return this.doAction('deactivate');
|
return this.doAction('deactivate');
|
||||||
},
|
},
|
||||||
|
|
||||||
delete: function() {
|
|
||||||
var machine = this.get('machine');
|
|
||||||
if ( machine )
|
|
||||||
{
|
|
||||||
return machine.delete();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return this.delete();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
purge: function() {
|
purge: function() {
|
||||||
return this.doAction('purge');
|
return this.doAction('purge');
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue