Skip to content
Snippets Groups Projects

Disable commenting on invalid lines (no identifier or in renamed files)

Merged Thomas Randolph requested to merge tor/defect/disable-comment-on-unchanged-line into master
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
@@ -57,9 +57,16 @@ export const classNameMapCell = ({ line, hll, isLoggedIn, isHover }) => {
export const addCommentTooltip = (line) => {
let tooltip;
if (!line) return tooltip;
if (!line) {
return tooltip;
}
tooltip = __('Add a comment to this line or drag for multiple lines');
if (!line.problems) {
return tooltip;
}
const { brokenSymlink, brokenLineCode, fileOnlyMoved } = line.problems;
if (brokenSymlink) {
Loading