enh: offline mode
This commit is contained in:
@@ -228,7 +228,7 @@
|
||||
}
|
||||
|
||||
// Check for version updates
|
||||
if ($user?.role === 'admin') {
|
||||
if ($user?.role === 'admin' && !$config?.offline_mode) {
|
||||
// Check if the user has dismissed the update toast in the last 24 hours
|
||||
if (localStorage.dismissedUpdateToast) {
|
||||
const dismissedUpdateToast = new Date(Number(localStorage.dismissedUpdateToast));
|
||||
|
||||
Reference in New Issue
Block a user