Admin: Apply on the right; Service timing ⓘ in three sentences
The module forms' "Save & re-init" becomes "Apply", sitting at the right of its row with the status text on the left — where a form's action belongs. The PCO Plan Service timing help was a paragraph behind its ⓘ; it now says the same thing in three sentences: who owns the clock and when it hands over, how a service starts and ends, and where the document lists come from. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
54ed388591
commit
b9d9e2894a
@@ -295,12 +295,15 @@ details.field-group > summary.field-group-title:hover { color: var(--text); }
|
||||
}
|
||||
.field.switch-field .switch-label { font-size: 13px; }
|
||||
|
||||
/* status on the left, Apply on the right */
|
||||
.module-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
.module-actions .admin-status { flex: 1; margin-top: 0; }
|
||||
.module-actions .btn { margin-left: auto; }
|
||||
|
||||
.admin-status { min-height: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
|
||||
.admin-status.error { color: var(--danger); }
|
||||
|
||||
@@ -586,10 +586,10 @@ function buildModuleCard(mod) {
|
||||
actions.className = 'module-actions';
|
||||
const save = document.createElement('button');
|
||||
save.className = 'btn primary';
|
||||
save.textContent = 'Save & re-init';
|
||||
save.textContent = 'Apply';
|
||||
const status = document.createElement('span');
|
||||
status.className = 'admin-status';
|
||||
actions.append(save, status);
|
||||
actions.append(status, save);
|
||||
form.appendChild(actions);
|
||||
card.appendChild(form);
|
||||
|
||||
@@ -597,14 +597,14 @@ function buildModuleCard(mod) {
|
||||
const config = {};
|
||||
for (const [key, read] of readers) config[key] = read();
|
||||
save.disabled = true;
|
||||
status.textContent = 'Saving…';
|
||||
status.textContent = 'Applying…';
|
||||
status.className = 'admin-status';
|
||||
try {
|
||||
await api(`/api/admin/modules/${encodeURIComponent(mod.id)}/config`, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ config }),
|
||||
});
|
||||
status.textContent = 'Saved — module re-initialised. Open tiles reconnect on their own.';
|
||||
status.textContent = 'Applied — module re-initialised. Open tiles reconnect on their own.';
|
||||
status.className = 'admin-status ok';
|
||||
refreshStatus();
|
||||
// What the module can list may have changed (credentials just
|
||||
|
||||
Reference in New Issue
Block a user