From 2172112144fc5d66255c5edfc628b51bb6097a8b Mon Sep 17 00:00:00 2001 From: Luke <35193662+PopcornPanda@users.noreply.github.com> Date: Wed, 11 Jan 2023 12:13:47 +0100 Subject: [PATCH] Setting for allowing long sms --- server/notification-providers/promosms.js | 2 +- src/components/notifications/PromoSMS.vue | 4 ++++ src/languages/en.js | 1 + src/languages/pl.js | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/notification-providers/promosms.js b/server/notification-providers/promosms.js index a9e7631eb..6992171be 100644 --- a/server/notification-providers/promosms.js +++ b/server/notification-providers/promosms.js @@ -20,7 +20,7 @@ class PromoSMS extends NotificationProvider { "recipients": [ notification.promosmsPhoneNumber ], //Lets remove non ascii char "text": msg.replace(/[^\x00-\x7F]/g, ""), - "long-sms": true, + "long-sms": notification.promosmsAllowLong, "type": Number(notification.promosmsSMSType), "sender": notification.promosmsSenderName }; diff --git a/src/components/notifications/PromoSMS.vue b/src/components/notifications/PromoSMS.vue index 03c02222d..9fe9c2172 100644 --- a/src/components/notifications/PromoSMS.vue +++ b/src/components/notifications/PromoSMS.vue @@ -26,6 +26,10 @@ +