Skip to content

Commit 51ec6c2

Browse files
authored
Merge pull request desktop#17741 from desktop/address-17687-feedback
Conflicts Resolutions Banner: Explain Null vs 0
2 parents deff725 + a912ffc commit 51ec6c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/src/ui/multi-commit-operation/dialog/conflicts-dialog.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ export class ConflictsDialog extends React.Component<
188188
)
189189
}
190190

191+
/**
192+
* Renders the banner based on count of resolved files.
193+
*
194+
* If the count of resolved files is null, then the banner is
195+
* not rendered as no conflicts have been resolved, yet. If the count of resolved
196+
* files is 0, then there have been conflicts resolved, but they have been
197+
* undone, we show an undone banner.
198+
*/
191199
public renderBanner(conflictedFilesCount: number) {
192200
const { countResolved } = this.state
193201
if (countResolved === null) {

0 commit comments

Comments
 (0)