Commit 0d7efd35 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix link to documentation on image size.

parent a5c7b5f8
Pipeline #2961 passed with stages
in 3 minutes and 8 seconds
......@@ -307,7 +307,7 @@ class EduLab {
})
.then(() => this.getAPI(req, '/classrooms/' + labid + '/vms'))
.then((apidata) => {
var vms = MachineList.parseList(apidata, data.locations, data.images, data.hwprofiles);
var vms = MachineList.parseList(apidata, data.locations, data.images, data.hardware);
data.vms = vms.getView();
})
.then(() => {
......
......@@ -26,6 +26,8 @@ class Lab {
view.edulab_hwprofile_ids_list = this.props.edulab_hwprofile_ids.join(' ');
view.edulab_image_ids_list = this.props.edulab_image_ids.join(' ');
// console.log("Lab view");
// console.log(view);
return view;
......
......@@ -14,6 +14,18 @@ class Machine {
console.log("YAY");
}
getSizeDoc() {
if (!this.hwprofiles) {
return '#';
}
for (var i = 0; i < this.hwprofiles.length; i++) {
if (this.hwprofiles[i].azure_vm_size_id === this.props.vm_size) {
return this.hwprofiles[i].description_url;
}
}
return '#';
}
getView() {
var view = this.props;
view.may = {};
......@@ -46,6 +58,7 @@ class Machine {
}
view.showRdp = (this.props.extended_properties.osType === 'windows');
view.vm_size_doc = this.getSizeDoc();
return view;
}
......
......@@ -60,7 +60,7 @@
<td>{{ provisioning_state }}</td>
<td><a target="_blank" href="https://docs.microsoft.com/nb-no/azure/virtual-machines/windows/sizes-general#av2-series">{{ vm_size }}</a></td>
<td><a target="_blank" href="{{ vm_size_doc }}">{{ vm_size }}</a></td>
<td >
{{#showRdp}}
......
Markdown is supported
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