Skip to content

Commit 14bde57

Browse files
Replace "Leave Without Pay" from the status badges
1 parent 6699cae commit 14bde57

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/azdo-pr-dashboard.user.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22

33
// @name More Awesome Azure DevOps (userscript)
4-
// @version 3.7.2
4+
// @version 3.7.3
55
// @author Alejandro Barreto (NI)
66
// @description Makes general improvements to the Azure DevOps experience, particularly around pull requests. Also contains workflow improvements for NI engineers.
77
// @license MIT
@@ -769,7 +769,12 @@
769769
}
770770

771771
if (employee.status) {
772-
annotateReviewer(nameElement, 'ooo', escapeStringForHtml(employee.status));
772+
let status = employee.status;
773+
if (status === "Leave Without Pay") {
774+
// Be nice and not show this status like this.
775+
status = "On Leave"
776+
}
777+
annotateReviewer(nameElement, 'ooo', escapeStringForHtml(status));
773778
}
774779
}
775780
}

0 commit comments

Comments
 (0)