diff --git a/custom/js/helper.js b/custom/js/helper.js index 4f21c1c..9f0b91b 100644 --- a/custom/js/helper.js +++ b/custom/js/helper.js @@ -1,5 +1,15 @@ function renderClientList(data) { $.each(data, function(index, obj) { + // render telegram button + let telegramButton = '' + if (obj.Client.telegram_userid) { + telegramButton = `
+ +
` + } + // render client status css tag style let clientStatusHtml = '>' if (obj.Client.enabled) { @@ -43,7 +53,7 @@ function renderClientList(data) { data-target="#modal_email_client" data-clientid="${obj.Client.id}" data-clientname="${obj.Client.name}">Email - + ${telegramButton}
+
+
+ + +
+ + + + + + +