feat: support suppressing version checks

This commit is contained in:
guenhter committed 2025-07-02 15:20:43 +02:00
1 parent 7adb15d4b0
commit 34ddd62951
6 files changed
+14 -10

No files matched your search

+1 -1
View File
@@ -227,7 +227,7 @@
}
// Check for version updates
if ($user?.role === 'admin' && !$config?.offline_mode) {
if ($user?.role === 'admin' && $config?.features?.enable_version_update_check) {
// Check if the user has dismissed the update toast in the last 24 hours
if (localStorage.dismissedUpdateToast) {
const dismissedUpdateToast = new Date(Number(localStorage.dismissedUpdateToast));