children?: React.ReactNode;
className?: string;
id?: string;
+ label?: string;
loading?: boolean;
onCheck: (checked: boolean, id?: string) => void;
right?: boolean;
};
render() {
- const { checked, children, disabled, id, loading, right, thirdState, title } = this.props;
+ const {
+ checked,
+ children,
+ disabled,
+ id,
+ label,
+ loading,
+ right,
+ thirdState,
+ title
+ } = this.props;
const className = classNames('icon-checkbox', {
'icon-checkbox-checked': checked,
'icon-checkbox-single': thirdState,
return (
<a
aria-checked={checked}
+ aria-label={label}
className={classNames('link-checkbox', this.props.className, {
disabled
})}
return (
<a
aria-checked={checked}
+ aria-label={label}
className={classNames(className, this.props.className)}
href="#"
id={id}
import * as React from 'react';
import { deleteIssueComment, editIssueComment } from '../../api/issues';
import Checkbox from '../../components/controls/Checkbox';
-import { translate } from '../../helpers/l10n';
+import { translate, translateWithParameters } from '../../helpers/l10n';
import { BranchLike } from '../../types/branch-like';
import { Issue } from '../../types/types';
import { updateIssue } from './actions';
onClick={this.handleClick}
role="region"
aria-label={issue.message}>
+ {hasCheckbox && (
+ <Checkbox
+ checked={checked || false}
+ className="issue-checkbox-container"
+ onCheck={this.handleCheck}
+ label={translateWithParameters('issues.action_select.label', issue.message)}
+ title={translate('issues.action_select')}
+ />
+ )}
<IssueTitleBar
branchLike={branchLike}
currentPopup={currentPopup}
))}
</div>
)}
- {hasCheckbox && (
- <Checkbox
- checked={checked || false}
- className="issue-checkbox-container"
- onCheck={this.handleCheck}
- title={translate('issues.action_select')}
- />
- )}
</div>
);
}
issue.tabs.code=Where is the issue?
issues.action_select=Select issue
+issues.action_select.label=Select issue {0}
issue.set_severity=Change Severity
issue.set_type=Change Type