Explorar o código

Merge pull request #1315 from weseek/support/apply-bst4-DeletePageListModal-Checkbox

GW-449 DeletePageListModalのCheckboxは未定義になっている:checkbox fixed
Yuki Takei %!s(int64=6) %!d(string=hai) anos
pai
achega
a4ebaa680f

+ 4 - 1
src/client/js/components/SearchPage/DeletePageListModal.jsx

@@ -44,7 +44,10 @@ export default class DeletePageListModal extends React.Component {
           <div className="d-flex justify-content-between">
             <span className="text-danger">{this.props.errorMessage}</span>
             <span className="d-flex align-items-center">
-              <Checkbox className="text-danger" onClick={this.props.toggleDeleteCompletely} inline>Delete completely</Checkbox>
+              <div className="custom-control custom-checkbox">
+                <input type="checkbox" className="custom-control-input" id="customCheck-delete-completely" />
+                <label className="custom-control-label text-danger" htmlFor="customCheck-delete-completely" onClick={this.props.toggleDeleteCompletely}>Delete completely</label>
+              </div>
               <span className="m-l-10">
                 <Button color="secondary" onClick={this.props.confirmedToDelete}><i className="icon-trash"></i>Delete</Button>
               </span>