Show error toast notification on unauthorized access
-When 403 status code which is an unauthorized access occured
-show error toast notification.
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com>
Change-Id: I55fa7052073f87f28c3584b68fd4e84247a4237e
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index 7803cac..7a4672d 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -72,6 +72,10 @@
"selectedItems":"%{filterCount} of %{count} items",
"toDate": "To date",
"viewAll": "View all"
+ },
+ "toast": {
+ "unAuthTitle": "Unauthorized",
+ "unAuthDescription": "The attempted action is not accessible from the logged in account. Contact your system administrator to check your privilege role."
}
},
"appHeader": {
@@ -134,7 +138,6 @@
"serverPowerOperations": "Server power operations",
"snmpSettings": "SNMP settings",
"sslCertificates": "SSL certificates",
- "unauthorized": "Unauthorized",
"virtualMedia": "Virtual media"
},
"pageChangePassword": {
@@ -645,9 +648,6 @@
"successReplaceCertificate": "Successfully replaced %{certificate}."
}
},
- "pageUnauthorized": {
- "description": "The attempted action is not accessible from the logged in account. Contact your system administrator to check your privilege role."
- },
"pageVirtualMedia": {
"configureConnection": "Configure Connection",
"defaultDeviceName": "Virtual media device",