s/Reboot into/Select/

This commit is contained in:
Ian Gulliver
2016-05-12 19:00:01 +00:00
parent aa8cd02f8e
commit 8e71c6f16d

View File

@@ -111,8 +111,8 @@ ImageController.prototype.onFetchManifest_ = function(type, wrapper) {
volume_id.addEventListener( volume_id.addEventListener(
'click', (e) => this.onVolumeIDClick_(e.target.innerText)); 'click', (e) => this.onVolumeIDClick_(e.target.innerText));
let reboot_into = this.createNode_(version, 'command', 'Reboot into'); let select = this.createNode_(version, 'command', 'Select');
reboot_into.addEventListener( select.addEventListener(
'click', (e) => { 'click', (e) => {
this.sendReboot_(type.version_hostname.innerText, image.timestamp); this.sendReboot_(type.version_hostname.innerText, image.timestamp);
type.version_section.classList.remove('live'); type.version_section.classList.remove('live');
@@ -154,7 +154,7 @@ ImageController.prototype.addInstance_ = function(type, hostname) {
instance.next_volume_id = this.createNode_(instance.section, 'volumeID'); instance.next_volume_id = this.createNode_(instance.section, 'volumeID');
instance.status = this.createNode_(instance.section, 'status'); instance.status = this.createNode_(instance.section, 'status');
instance.reboot = this.createNode_(instance.section, 'reboot', 'Reboot'); instance.reboot = this.createNode_(instance.section, 'reboot', 'Reboot');
instance.reboot_into = this.createNode_(instance.section, 'reboot', 'Reboot into'); instance.select = this.createNode_(instance.section, 'reboot', 'Select');
instance.volume_id.addEventListener( instance.volume_id.addEventListener(
'click', (e) => this.onVolumeIDClick_(e.target.innerText)); 'click', (e) => this.onVolumeIDClick_(e.target.innerText));
@@ -162,8 +162,8 @@ ImageController.prototype.addInstance_ = function(type, hostname) {
'click', (e) => this.onVolumeIDClick_(e.target.innerText)); 'click', (e) => this.onVolumeIDClick_(e.target.innerText));
instance.reboot.addEventListener( instance.reboot.addEventListener(
'click', (e) => this.sendReboot_(hostname)); 'click', (e) => this.sendReboot_(hostname));
instance.reboot_into.addEventListener( instance.select.addEventListener(
'click', (e) => this.onRebootIntoClick_(type, hostname)); 'click', (e) => this.onSelectClick_(type, hostname));
type.instances.set(hostname, instance); type.instances.set(hostname, instance);
}; };
@@ -199,7 +199,7 @@ ImageController.prototype.onVolumeIDClick_ = function(volume_id) {
open(base_url.replace('VOLUMEID', volume_id)); open(base_url.replace('VOLUMEID', volume_id));
}; };
ImageController.prototype.onRebootIntoClick_ = function(type, hostname) { ImageController.prototype.onSelectClick_ = function(type, hostname) {
type.version_hostname.innerText = hostname; type.version_hostname.innerText = hostname;
type.version_section.classList.add('live'); type.version_section.classList.add('live');
}; };