Skip to content

Commit 6e3e0a5

Browse files
committed
add count to display number of commits
1 parent 138c4c1 commit 6e3e0a5

File tree

1 file changed

+7
-1
lines changed
  • ui/src/Components/DashBoard/Repository/GitComponents/GitOperation

1 file changed

+7
-1
lines changed

ui/src/Components/DashBoard/Repository/GitComponents/GitOperation/PushComponent.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,13 @@ export default function PushComponent(props) {
240240
{unpushedCommits && unpushedCommits.length > 0 ? (
241241
<div className="git-ops--push--unpushed">
242242
<div className="git-ops--push--unpushed--label">
243-
Commits to be pushed
243+
{unpushedCommits.length !== 0 ? (
244+
<span className="mx-1 border-b border-dashed border-gray-600">
245+
{unpushedCommits.length}
246+
</span>
247+
) : null}
248+
{unpushedCommits.length === 1 ? "Commit " : "Commits "}
249+
to be pushed
244250
</div>
245251
<div className="overflow-auto" style={{ height: "200px" }}>
246252
{unpushedCommits.map((commits, index) => {

0 commit comments

Comments
 (0)