Commit 95169833 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(frontend): fixed reload in admin machines

parent 2173b636
......@@ -302,10 +302,6 @@ ravadaApp.directive("solShowMachine", swMach)
$scope.cancel_modal=function(){
$scope.modalOpened=false;
}
$scope.refresh_machines=function() {
$scope.getMachines();
}
//On load code
$scope.modalOpened=false;
$scope.rename= {new_name: 'new_name'};
......
......@@ -101,7 +101,7 @@
<div class="col-md-4" align="right">
% if ($_user->can_create_machine){
<h2>
<button class="btn btn-warning" ng-click="refresh_machines()"><i class="fa fa-sync-alt" aria-hidden="true"></i></button>
<button class="btn btn-warning" ng-click="list_machines=[];subscribe_all('<%= url_for('ws_subscribe')->to_abs %>');"><i class="fa fa-sync-alt" aria-hidden="true"></i></button>
<a type="button" class="btn btn-success" href="/new_machine.html">
<b><%=l 'New Machine' %></b>
<i ng-show="download_working"
......
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