Loading www/modules/containers.js +3 −2 Changes for www/modules/containers.js: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -312,7 +312,8 @@ } const running = (data.jobs || []).filter(j => j.state === 'running'); const short = id => (id || '').replace('sha256:', '').slice(0, 12); root.replaceChildren( // replaceChildren() would show a null as the text "null": filtered out root.replaceChildren(...[ running.length ? h('section', {class: 'panel'}, h('div', {class: 'toolbar'}, h('h2', {}, t('Running actions'))), h('ul', {class: 'job-list'}, running.map(j => h('li', {}, Loading Loading @@ -360,7 +361,7 @@ }}, t('Update')), (i.usedBy || []).length ? null : h('button', {class: 'small danger', onclick: () => removeImage(i)}, t('Remove')), ]}, ], data.images || [], t('No images yet. Pull one, e.g. nginx or debian:stable.')))); ], data.images || [], t('No images yet. Pull one, e.g. nginx or debian:stable.')))].filter(Boolean)); } webctl.register('containers', { Loading Loading
www/modules/containers.js +3 −2 Changes for www/modules/containers.js: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -312,7 +312,8 @@ } const running = (data.jobs || []).filter(j => j.state === 'running'); const short = id => (id || '').replace('sha256:', '').slice(0, 12); root.replaceChildren( // replaceChildren() would show a null as the text "null": filtered out root.replaceChildren(...[ running.length ? h('section', {class: 'panel'}, h('div', {class: 'toolbar'}, h('h2', {}, t('Running actions'))), h('ul', {class: 'job-list'}, running.map(j => h('li', {}, Loading Loading @@ -360,7 +361,7 @@ }}, t('Update')), (i.usedBy || []).length ? null : h('button', {class: 'small danger', onclick: () => removeImage(i)}, t('Remove')), ]}, ], data.images || [], t('No images yet. Pull one, e.g. nginx or debian:stable.')))); ], data.images || [], t('No images yet. Pull one, e.g. nginx or debian:stable.')))].filter(Boolean)); } webctl.register('containers', { Loading