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
eff107ae
Unverified
Commit
eff107ae
authored
Jun 21, 2021
by
robertperez-upc
Committed by
GitHub
Jun 21, 2021
Browse files
Can view machines on new tab (#1565)
parent
c1e7fcdd
Changes
3
Hide whitespace changes
Inline
Side-by-side
public/js/admin.js
View file @
eff107ae
...
...
@@ -313,7 +313,10 @@ ravadaApp.directive("solShowMachine", swMach)
};
$scope
.
action
=
function
(
target
,
action
,
machineId
){
if
(
action
===
'
view
'
)
{
if
(
action
===
'
view-new-tab
'
)
{
window
.
open
(
'
/machine/view/
'
+
machineId
+
'
.html
'
);
}
else
if
(
action
===
'
view
'
)
{
window
.
location
.
assign
(
'
/machine/view/
'
+
machineId
+
'
.html
'
);
}
else
{
...
...
public/js/ravada.js
View file @
eff107ae
...
...
@@ -288,7 +288,10 @@
};
$scope
.
action
=
function
(
target
,
action
,
machineId
,
params
){
if
(
action
===
'
view
'
)
{
if
(
action
===
'
view-new-tab
'
)
{
window
.
open
(
'
/machine/view/
'
+
machineId
+
'
.html
'
);
}
else
if
(
action
===
'
view
'
)
{
window
.
location
.
assign
(
'
/machine/view/
'
+
machineId
+
'
.html
'
);
}
else
{
...
...
templates/main/admin_machines.html.ep
View file @
eff107ae
...
...
@@ -276,7 +276,7 @@
<i
class=
"fa fa-power-off"
></i>
</button>
<button
type=
"button"
class=
"btn btn-primary btn-sm"
ng-click=
"action('machine','view',machine.id)"
ng-click=
"action('machine','view
-new-tab
',machine.id)"
title=
"<%=l 'View' %>"
>
<i
class=
"fa fa-desktop"
></i>
</button>
...
...
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