From ae3db056498fc27d845a3b1a501cd69cc274918d Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 14 May 2024 13:40:30 +0700 Subject: [PATCH] 2024.5.14 --- CHANGELOG.md | 5 +++++ ui/ui/dashboard.tpl | 15 +++++++++++++++ ui/ui/sections/header.tpl | 2 +- version.json | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4605b11c..6bd42797 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ # CHANGELOG +## 2024.5.14 + +- Show Plan and Location on expired list +- Customizeable payment for recharge + ## 2024.5.8 - Fix bugs burst by @Gerandonk diff --git a/ui/ui/dashboard.tpl b/ui/ui/dashboard.tpl index 69550bb2..9f851f6e 100644 --- a/ui/ui/dashboard.tpl +++ b/ui/ui/dashboard.tpl @@ -385,6 +385,21 @@ var latestVersion = data.version; if (localVersion !== latestVersion) { $('#version').html('Latest Version: ' + latestVersion); + Swal.fire({ + icon: 'info', + title: "New Version Available\nVersion: "+latestVersion, + toast: true, + position: 'bottom-right', + showConfirmButton: true, + showCloseButton: true, + timer: 30000, + confirmButtonText: 'Update Now', + timerProgressBar: true, + didOpen: (toast) => { + toast.addEventListener('mouseenter', Swal.stopTimer) + toast.addEventListener('mouseleave', Swal.resumeTimer) + } + }); } }); }); diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 31afdbc1..2e8d0219 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -419,4 +419,4 @@ } }); -{/if} +{/if} \ No newline at end of file diff --git a/version.json b/version.json index ec48966b..bd2b4829 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.5.8" + "version": "2024.5.14" } \ No newline at end of file