Explorar el Código

💄 change server problem toast message style

jmacura hace 3 años
padre
commit
cb8b22d089
Se han modificado 1 ficheros con 12 adiciones y 3 borrados
  1. 12 3
      src/adjuster/adjuster.service.ts

+ 12 - 3
src/adjuster/adjuster.service.ts

@@ -171,7 +171,10 @@ export class AdjusterService {
     } catch (error) {
       this.hsToastService.createToastPopupMessage(
         'Error loading data',
-        `Error obtaining data from ${this.serviceBaseUrl}.`
+        `Error obtaining data from ${this.serviceBaseUrl}.`,
+        {
+          toastStyleClasses: 'bg-warning text-dark',
+        }
       );
       console.warn(`Error obtaining data from ${this.serviceBaseUrl}.`);
       console.log(error);
@@ -243,7 +246,10 @@ export class AdjusterService {
     } catch (error) {
       this.hsToastService.createToastPopupMessage(
         'Error loading data',
-        `Error obtaining data from ${this.serviceBaseUrl}.`
+        `Error obtaining data from ${this.serviceBaseUrl}.`,
+        {
+          toastStyleClasses: 'bg-warning text-dark',
+        }
       );
       console.warn(`Error obtaining data from ${this.serviceBaseUrl}.`);
       console.log(error);
@@ -323,7 +329,10 @@ export class AdjusterService {
     } catch (error) {
       this.hsToastService.createToastPopupMessage(
         'Error loading ontology',
-        `Web service at ${this.serviceBaseUrl} unavailable!`
+        `Web service at ${this.serviceBaseUrl} unavailable! Please, try again later!`,
+        {
+          toastStyleClasses: 'bg-warning text-dark',
+        }
       );
       console.warn(`Web service at ${this.serviceBaseUrl} unavailable!`);
       console.log(error);