소스 검색

💄 change server problem toast message style

jmacura 3 년 전
부모
커밋
cb8b22d089
1개의 변경된 파일12개의 추가작업 그리고 3개의 파일을 삭제
  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);