X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=bottlenecks.git;a=blobdiff_plain;f=test-scheduler%2Fui%2Fsrc%2Fcomponents%2Fmessage%2FshowMessage.js;fp=testing-scheduler%2Fui%2Fsrc%2Fcomponents%2Fmessage%2FshowMessage.js;h=2ac203e7dce58701bbfe1c4778141bfb2a71cb67;hp=39cc32bf2c54d88f2150538894d573ca1f3ea454;hb=e32043f58a2450b6a5986dc2a01f64f8b22c3992;hpb=a09bbea983aca3e437e254566da98196177748d9
diff --git a/testing-scheduler/ui/src/components/message/showMessage.js b/test-scheduler/ui/src/components/message/showMessage.js
similarity index 96%
rename from testing-scheduler/ui/src/components/message/showMessage.js
rename to test-scheduler/ui/src/components/message/showMessage.js
index 39cc32bf..2ac203e7 100644
--- a/testing-scheduler/ui/src/components/message/showMessage.js
+++ b/test-scheduler/ui/src/components/message/showMessage.js
@@ -1,30 +1,30 @@
-import toastr from '../../assets/js/toastr.min.js'
-export default function(type, title, info, detail="") {
- if(typeof type == "number") {
- if(200 <= type && type < 300) {
- type = "success";
- } else if (300 <= type && type < 500) {
- type = "warning";
- } else if (500 <= type) {
- type = "error";
- } else {
- type = "info";
- }
- }
- if(detail != "") {
- detail = "* detail: " + detail;
- }
- var content = "
* " + info + "
" + detail;
- if(type == "success"){
- toastr.success(content, title);
- }
- else if(type == "info") {
- toastr.info(content, title);
- }
- else if(type == "error"){
- toastr.error(content, title);
- }
- else {
- toastr.warning(content, title);
- }
-}
\ No newline at end of file
+import toastr from '../../assets/js/toastr.min.js'
+export default function(type, title, info, detail="") {
+ if(typeof type == "number") {
+ if(200 <= type && type < 300) {
+ type = "success";
+ } else if (300 <= type && type < 500) {
+ type = "warning";
+ } else if (500 <= type) {
+ type = "error";
+ } else {
+ type = "info";
+ }
+ }
+ if(detail != "") {
+ detail = "* detail: " + detail;
+ }
+ var content = "
* " + info + "
" + detail;
+ if(type == "success"){
+ toastr.success(content, title);
+ }
+ else if(type == "info") {
+ toastr.info(content, title);
+ }
+ else if(type == "error"){
+ toastr.error(content, title);
+ }
+ else {
+ toastr.warning(content, title);
+ }
+}