@agenticmail/enterprise 0.5.383 → 0.5.385
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/app.js +3 -3
- package/package.json +1 -1
package/dist/dashboard/app.js
CHANGED
|
@@ -200,7 +200,7 @@ function App() {
|
|
|
200
200
|
} catch {}
|
|
201
201
|
// Check for updates (admin/owner only)
|
|
202
202
|
if (u.role === 'admin' || u.role === 'owner') {
|
|
203
|
-
apiCall('/
|
|
203
|
+
apiCall('/system/update-check').then(ui => { if (ui?.updateAvailable) setUpdateInfo(ui); }).catch(() => {});
|
|
204
204
|
}
|
|
205
205
|
setAuthed(true);
|
|
206
206
|
setAuthChecked(true);
|
|
@@ -351,7 +351,7 @@ function App() {
|
|
|
351
351
|
} catch {}
|
|
352
352
|
// Check for updates AFTER encryption is ready (admin only)
|
|
353
353
|
if (d?.user && (d.user.role === 'admin' || d.user.role === 'owner')) {
|
|
354
|
-
apiCall('/
|
|
354
|
+
apiCall('/system/update-check').then(u => { if (u?.updateAvailable) setUpdateInfo(u); }).catch(() => {});
|
|
355
355
|
}
|
|
356
356
|
setAuthed(true);
|
|
357
357
|
} });
|
|
@@ -573,7 +573,7 @@ function App() {
|
|
|
573
573
|
onClick: async () => {
|
|
574
574
|
setUpdating(true);
|
|
575
575
|
try {
|
|
576
|
-
const r = await apiCall('/
|
|
576
|
+
const r = await apiCall('/system/update', { method: 'POST' });
|
|
577
577
|
if (r?.success) {
|
|
578
578
|
setUpdateInfo(null);
|
|
579
579
|
showToast && showToast('Updated to v' + r.to + ' — services restarting...', 'success');
|