Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
95169833
Commit
95169833
authored
Jan 24, 2020
by
Francesc Guasch
Browse files
fix(frontend): fixed reload in admin machines
parent
2173b636
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/js/admin.js
View file @
95169833
...
...
@@ -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
'
};
...
...
templates/main/admin_machines.html.ep
View file @
95169833
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment