diff --git a/locales/en/messages.json b/locales/en/messages.json index 87d01fb0d6..6539e81f51 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -3421,14 +3421,6 @@ "firmwareFlasherCloudBuildFailed": { "message": "failed (please check log)" }, - "firmwareFlasherCloudBuildHealthStatus": { - "message": "Cloud API Health Status:", - "description": "Label for Cloud build health status" - }, - "firmwareFlasherCloudBuildHealthStatusQueue": { - "message": "Cloud API Queue:", - "description": "Label for Cloud build queue" - }, "firmwareFlasherReleaseFileUrl": { "message": "Download manually." }, diff --git a/src/js/BuildApi.js b/src/js/BuildApi.js index 929876dda8..39144018ec 100644 --- a/src/js/BuildApi.js +++ b/src/js/BuildApi.js @@ -76,18 +76,6 @@ export default class BuildApi { }); } - getHealthStatus(onSuccess, onFailure) { - const url = `${this._url}/healthcheck`; - $.get(url, function (data) { - onSuccess(data); - }).fail(xhr => { - gui_log(i18n.getMessage('buildServerFailure', [url, `HTTP ${xhr.status}`])); - if (onFailure !== undefined) { - onFailure(); - } - }); - } - getSupportCommands(onSuccess, onFailure) { const url = `${this._url}/api/support/commands`; $.get(url, function (data) { diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index ad47ee508e..4983783a9e 100644 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -891,34 +891,6 @@ firmware_flasher.initialize = function (callback) { showReleaseNotes(self.targetDetail); - // Add health and queue status - const cloudBuildHealthStatusElement = $('#cloudBuildHealthStatus'); - const cloudBuildHealthStatusValue = $('#cloudBuildHealthStatusValue'); - const cloudBuildHealthStatusQueueElement = $('#cloudBuildHealthStatusQueue'); - const cloudBuildHealthStatusQueueValue = $('#cloudBuildHealthStatusQueueValue'); - - if (self.targetDetail.cloudBuild === true) { - self.releaseLoader.getHealthStatus(health => { - - if (health.status !== 'OK') { - cloudBuildHealthStatusValue.text(health.status); - cloudBuildHealthStatusElement.show(); - } else { - cloudBuildHealthStatusElement.hide(); - } - - if (health.queued > 0) { - cloudBuildHealthStatusQueueValue.text(health.queued); - cloudBuildHealthStatusQueueElement.show(); - } else { - cloudBuildHealthStatusQueueElement.hide(); - } - }); - } else { - cloudBuildHealthStatusElement.hide(); - cloudBuildHealthStatusQueueElement.hide(); - } - requestCloudBuild(self.targetDetail); } else { $('span.progressLabel').attr('i18n','firmwareFlasherFailedToLoadOnlineFirmware').removeClass('i18n-replaced'); diff --git a/src/tabs/firmware_flasher.html b/src/tabs/firmware_flasher.html index 3f2dab8d53..96e9949f38 100644 --- a/src/tabs/firmware_flasher.html +++ b/src/tabs/firmware_flasher.html @@ -255,16 +255,6 @@
-
- - -
-
-
- - -
-