summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/common/services/constants.js5
-rw-r--r--app/common/services/dataService.js20
2 files changed, 0 insertions, 25 deletions
diff --git a/app/common/services/constants.js b/app/common/services/constants.js
index 52e9f97..e1839f5 100644
--- a/app/common/services/constants.js
+++ b/app/common/services/constants.js
@@ -122,11 +122,6 @@ window.angular && (function(angular) {
WARNING_NO_SENSOR_DATA: 'There are no sensors in Warning state.',
NORMAL_NO_SENSOR_DATA: 'There are no sensors in Normal state.'
},
- ERROR_MODAL: {
- TITLE: 'Unexpected error',
- DESCRIPTION:
- 'Oops! An unexpected error occurred. Record specific details of the issue, then contact your company support services.'
- },
ERROR_MESSAGE_DESC_TEMPLATE: '{{status}} - {{description}}',
},
POWER_CAP_TEXT: {unit: 'W', disabled: 'Not Enabled'},
diff --git a/app/common/services/dataService.js b/app/common/services/dataService.js
index 1cb63ee..b0d359c 100644
--- a/app/common/services/dataService.js
+++ b/app/common/services/dataService.js
@@ -111,26 +111,6 @@ window.angular && (function(angular) {
}
};
- this.activateErrorModal = function(data) {
- if (data && data.hasOwnProperty('title')) {
- this.errorModalDetails.title = data.title;
- } else {
- this.errorModalDetails.title = Constants.MESSAGES.ERROR_MODAL.TITLE;
- }
-
- if (data && data.hasOwnProperty('description')) {
- this.errorModalDetails.description = data.description;
- } else {
- this.errorModalDetails.description =
- Constants.MESSAGES.ERROR_MODAL.DESCRIPTION;
- }
- this.displayErrorModal = true;
- };
-
- this.deactivateErrorModal = function() {
- this.displayErrorModal = false;
- };
-
this.setSystemName = function(sysName) {
this.systemName = sysName;
};
OpenPOWER on IntegriCloud