Unverified Commit eff107ae authored by robertperez-upc's avatar robertperez-upc Committed by GitHub
Browse files

Can view machines on new tab (#1565)

parent c1e7fcdd
......@@ -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 {
......
......@@ -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 {
......
......@@ -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>
......
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