Skip to content

Commit 29f9137

Browse files
committed
WIP: Add view all button to NIC
1 parent df00393 commit 29f9137

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎ui/scripts/instances.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,10 @@
12421242
}
12431243
}
12441244
],
1245+
viewAll: {
1246+
path: 'network.ipAddresses',
1247+
attachTo: 'ipaddress'
1248+
},
12451249
dataProvider: function(args) {
12461250
$.ajax({
12471251
url:createURL("listVirtualMachines&details=nics&id=" + args.context.instances[0].id),

‎ui/scripts/ui/widgets/detailView.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,16 @@
10341034
actionFilter: actionFilter
10351035
}
10361036
).appendTo($tabContent);
1037+
1038+
if (tabData.viewAll) {
1039+
$tabContent.find('tr')
1040+
.filter('.' + tabData.viewAll.attachTo).find('td.value')
1041+
.append(
1042+
$('<div>').addClass('view-all').append(
1043+
$('<span>').html('View all IP Addresses')
1044+
)
1045+
);
1046+
}
10371047
});
10381048

10391049
return true;

0 commit comments

Comments
 (0)