Skip to content

Commit b30015c

Browse files
committed
Set badge titles (tooltips) to match sort keys
So that you can more easily see the datestamp for each row.
1 parent c102592 commit b30015c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sortable-badges.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ async function loadBadgesGradually(token, progressCallback) {
8686
const badges = document.getElementsByClassName('badge');
8787
Array.from(badges).forEach(badge => {
8888
badge.setAttribute('sorttable_customkey', 'loading');
89+
badge.setAttribute('title', 'loading');
8990
});
9091

9192
const badgeArray = Array.from(badges);
@@ -107,6 +108,7 @@ async function loadBadgesGradually(token, progressCallback) {
107108
const status = await getWorkflowStatus(img.dataset.src, token);
108109
const sortKey = getSortKey(status);
109110
badge.setAttribute('sorttable_customkey', sortKey);
111+
badge.setAttribute('title', sortKey);
110112
console.log('Set sort key:', sortKey);
111113

112114
// Then load the badge image

0 commit comments

Comments
 (0)