Fix NovaCPX update action name mismatch and progress bar null error

- admin.js was calling 'apply-novacpx-update' but endpoint is 'apply-update'
- Add null guard in nova.js progress bar setInterval — _barEl can be set to
  null by the fade-out timer between interval ticks, causing a crash

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 11:03:04 +00:00
parent 18c5989c17
commit 98f6a0700c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1943,7 +1943,7 @@ ${dbs.map(d=>`<tr>
window.applyNovaCPXUpdate = async () => {
Nova.confirm('Apply NovaCPX update? PHP syntax is checked first, and a backup is taken automatically. The panel will self-restore if anything breaks.', async () => {
Nova.loading('Pulling NovaCPX update from GitHub…');
const res = await Nova.api('system', 'apply-novacpx-update', { method: 'POST' });
const res = await Nova.api('system', 'apply-update', { method: 'POST' });
Nova.loadingDone();
const d = res?.data;
if (!res?.success) {