mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Add 'View Instances' in template/iso details view
This commit is contained in:
parent
9b907902d2
commit
0d9c38e131
@ -19,9 +19,13 @@ package org.apache.cloudstack.api.response;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import org.apache.cloudstack.api.BaseResponse;
|
||||
import org.apache.cloudstack.api.EntityReference;
|
||||
|
||||
import com.cloud.serializer.Param;
|
||||
import com.cloud.template.VirtualMachineTemplate;
|
||||
|
||||
@EntityReference(value=VirtualMachineTemplate.class)
|
||||
@SuppressWarnings("unused")
|
||||
public class IsoVmResponse extends BaseResponse {
|
||||
@SerializedName("id")
|
||||
@Param(description = "the ISO ID")
|
||||
|
||||
@ -347,6 +347,18 @@
|
||||
});
|
||||
}
|
||||
|
||||
if ("templates" in args.context) {
|
||||
$.extend(data, {
|
||||
templateid: args.context.templates[0].id
|
||||
});
|
||||
}
|
||||
|
||||
if ("isos" in args.context) {
|
||||
$.extend(data, {
|
||||
isoid: args.context.isos[0].id
|
||||
});
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: createURL('listVirtualMachines'),
|
||||
data: data,
|
||||
|
||||
@ -643,6 +643,10 @@
|
||||
|
||||
detailView: {
|
||||
name: 'Template details',
|
||||
viewAll: {
|
||||
label: 'label.instances',
|
||||
path: 'instances'
|
||||
},
|
||||
actions: {
|
||||
edit: {
|
||||
label: 'label.edit',
|
||||
@ -1777,6 +1781,10 @@
|
||||
|
||||
detailView: {
|
||||
name: 'label.details',
|
||||
viewAll: {
|
||||
label: 'label.instances',
|
||||
path: 'instances'
|
||||
},
|
||||
actions: {
|
||||
edit: {
|
||||
label: 'label.edit',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user