diff --git a/src/ui/static/js/account.js b/src/ui/static/js/account.js index abb3130c8..af4df09d2 100644 --- a/src/ui/static/js/account.js +++ b/src/ui/static/js/account.js @@ -128,8 +128,26 @@ class SwitchTabForm { } } +class FormatExpire { + constructor() { + this.init(); + } + + init() { + window.addEventListener("DOMContentLoaded", () => { + const expireEl = document.querySelector("[data-expire]"); + if (!expireEl) return; + + expireEl.textContent = expireEl.textContent + .replaceAll("-", "/") + .split(" ")[0]; + }); + } +} + const setPWBtn = new PwBtn(); const setSubmit = new SubmitAccount(); const setTabs = new Tabs(); const setPopover = new Popover(); const setSwitchTabForm = new SwitchTabForm(); +const setFormatExpire = new FormatExpire(); diff --git a/src/ui/tailwind.config.js b/src/ui/tailwind.config.js index c1a56386e..ba41318be 100644 --- a/src/ui/tailwind.config.js +++ b/src/ui/tailwind.config.js @@ -69,7 +69,7 @@ module.exports = { "w-full", "text-yellow-500", "text-green-500", - "text-red-500" + "text-red-500", ], presets: [], diff --git a/src/ui/templates/account.html b/src/ui/templates/account.html index 61f0584a9..240e24fa0 100644 --- a/src/ui/templates/account.html +++ b/src/ui/templates/account.html @@ -99,11 +99,11 @@ {% endif %} {% if is_pro_version %}
Your license is valid until {{ pro_expire }}
- {% endif %} {% if pro_services %} -{{ pro_services }} services plan
+{{ pro_services }} services allowed
+ {% endif %} + {% if pro_expire %} +License expired : {{ pro_expire }}
{% endif %}{{ plugin['description'] }}