V0.7.0 shell contract (#54)
All checks were successful
All checks were successful
This commit was merged in pull request #54.
This commit is contained in:
@@ -134,7 +134,17 @@
|
||||
for (const wf of list) {
|
||||
if (wf.slug) installed[wf.slug] = wf;
|
||||
}
|
||||
} catch (e) { /* ignore — show all as not-installed */ }
|
||||
} catch (e) {
|
||||
const errDiv = document.createElement('div');
|
||||
errDiv.className = 'sw-inline-error';
|
||||
errDiv.innerHTML = '<span>' + _esc(e.message || 'Failed to load workflows') + '</span>';
|
||||
const retryBtn = document.createElement('button');
|
||||
retryBtn.className = 'sw-btn sw-btn--secondary sw-btn--sm';
|
||||
retryBtn.textContent = 'Retry';
|
||||
retryBtn.onclick = () => { errDiv.remove(); _mount(surface); };
|
||||
errDiv.appendChild(retryBtn);
|
||||
grid.appendChild(errDiv);
|
||||
}
|
||||
|
||||
for (const wf of WORKFLOWS) {
|
||||
grid.appendChild(_buildCard(wf, installed[wf.slug]));
|
||||
|
||||
Reference in New Issue
Block a user