CS-15891: Add view console action to VPC instances list view

This commit is contained in:
Brian Federle 2012-08-07 15:43:52 -07:00
parent f541d85fce
commit ff29e4f02f
2 changed files with 27 additions and 3 deletions

View File

@ -9647,7 +9647,7 @@ div.panel.ui-dialog div.list-view div.fixed-header {
float: left;
}
/*Configure ACL dialog*/
/*Configure ACL dialog / VM tier list view dialog*/
.ui-dialog.configure-acl .multi-edit {
width: 866px;
}
@ -9657,12 +9657,16 @@ div.panel.ui-dialog div.list-view div.fixed-header {
}
.ui-dialog.configure-acl .ui-dialog-buttonpane {
/*+placement:shift 798px -2px;*/
/*+placement:shift 722px -2px;*/
position: relative;
left: 798px;
left: 722px;
top: -2px;
}
.ui-dialog.configure-acl div.view.list-view {
max-height: 474px;
}
.ui-dialog.configure-acl .multi-edit .data {
width: 901px;
padding: 0;
@ -9677,6 +9681,11 @@ div.panel.ui-dialog div.list-view div.fixed-header {
max-width: none !important;
}
.ui-dialog.configure-acl .view.list-view table.body tr td.actions {
width: 184px !important;
max-width: 184px !important;
}
/*Autoscaler*/
.ui-dialog div.autoscaler {
overflow: auto;

View File

@ -369,6 +369,21 @@
}
});
}
},
viewConsole: {
label: 'label.view.console',
action: {
externalLink: {
url: function(args) {
return clientConsoleUrl + '?cmd=access&vm=' + args.context.vpcTierInstances[0].id;
},
title: function(args) {
return args.context.vpcTierInstances[0].id.substr(0,8); //title in window.open() can't have space nor longer than 8 characters. Otherwise, IE browser will have error.
},
width: 820,
height: 640
}
}
}
},
dataProvider: function(args) {