From 4975a569f7be11a89f9c381494f42ccf55fd49d3 Mon Sep 17 00:00:00 2001
From: ukarim
Date: Fri, 16 Aug 2024 18:08:48 +0500
Subject: [PATCH] show error msg in webui if no smpp sessions found
---
web.go | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/web.go b/web.go
index 48b2d71..fcd2787 100644
--- a/web.go
+++ b/web.go
@@ -76,10 +76,13 @@ const WEB_PAGE_TPL = `
text-transform: uppercase;
background: #3585f7;
}
+ input[type="submit"]:disabled {
+ background: #dfdfdf;
+ }
#message {
color: #009688;
}
- #error {
+ .error {
color: #f44336;
}
@@ -98,6 +101,9 @@ const WEB_PAGE_TPL = `
+ {{ if not .SystemIds }}
+ No smpp sessions found. At least one smpp client should connect to smscsim
+ {{ end }}
-
+
{{ if .Message }}
{{ .Message }}
{{ end }}
{{ if .ErrorMessage }}
- {{ .ErrorMessage }}
+ {{ .ErrorMessage }}
{{ end }}