Commit e60e085a authored by frankiejol's avatar frankiejol
Browse files

refactor(frontend): vars have to be declared now

parent 33ba64e7
......@@ -545,10 +545,9 @@
$http.get("/machine/public/"+machineId+"/"+value);
};
$scope.set_base= function(vmId,machineId, value) {
var url = 'set_base_vm';
if (value == 0 || !value) {
url = 'remove_base_vm';
} else {
url = 'set_base_vm';
}
$http.get("/machine/"+url+"/" +vmId+ "/" +machineId+".json")
.then(function(response) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment