Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions intelligence/company/www/assets/meridian.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ window.__meridianFetchJsonWithTimeout = window.__meridianFetchJsonWithTimeout ||
});
Array.prototype.forEach.call(shell.querySelectorAll('[data-bulk-decision]'), function (button) {
button.disabled = !selectedCount;
if (!selectedCount) {
button.setAttribute('title', 'Select at least one item to apply decision');
} else {
button.removeAttribute('title');
}
});
}

Expand Down
8 changes: 4 additions & 4 deletions intelligence/company/www/trust-ops.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ <h1>Trust Ops Queue</h1>
</label>
<strong class="operator-selected-count" data-trust-ops-selected-count>0 selected</strong>
<div class="operator-actions">
<button type="button" class="operator-action" data-bulk-decision="approve" disabled>approve</button>
<button type="button" class="operator-action" data-bulk-decision="stale" disabled>stale</button>
<button type="button" class="operator-action" data-bulk-decision="revoke" disabled>revoke</button>
<button type="button" class="operator-action" data-bulk-decision="unresolved" disabled>unresolved</button>
<button type="button" class="operator-action" data-bulk-decision="approve" disabled title="Select at least one item to apply decision">approve</button>
<button type="button" class="operator-action" data-bulk-decision="stale" disabled title="Select at least one item to apply decision">stale</button>
<button type="button" class="operator-action" data-bulk-decision="revoke" disabled title="Select at least one item to apply decision">revoke</button>
<button type="button" class="operator-action" data-bulk-decision="unresolved" disabled title="Select at least one item to apply decision">unresolved</button>
</div>
</div>
</div>
Expand Down
Loading