1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 23:48:47 +00:00

Merge pull request #3722 from haiwen/comment-btn-color

change button color
This commit is contained in:
Daniel Pan
2019-06-25 17:24:30 +08:00
committed by GitHub
4 changed files with 6 additions and 5 deletions

View File

@@ -101,7 +101,7 @@ class DetailCommentList extends React.Component {
className="add-comment-input" ref="commentTextarea" placeholder={gettext('Add a comment.')}
clos="100" rows="3" warp="virtual"
></textarea>
<Button className="submit-comment" color="success" size="sm" onClick={this.submitComment}>{gettext('Submit')}</Button>
<Button className="submit-comment" color="primary" size="sm" onClick={this.submitComment}>{gettext('Submit')}</Button>
</div>
</div>
);
@@ -189,7 +189,7 @@ class CommentItem extends React.Component {
<textarea className="edit-comment-input" value={this.state.newComment}
onChange={this.handleCommentChange} clos="100" rows="3" warp="virtual"
></textarea>
<Button className="comment-btn" color="success" size="sm" onClick={this.updateComment} id={item.id}>{gettext('Update')}</Button>{' '}
<Button className="comment-btn" color="primary" size="sm" onClick={this.updateComment} id={item.id}>{gettext('Update')}</Button>{' '}
<Button className="comment-btn" color="secondary" size="sm" onClick={this.toggleEditComment}> {gettext('Cancel')}</Button>
</div>
</li>

View File

@@ -130,7 +130,7 @@ class CommentPanel extends React.Component {
placeholder={gettext('Add a comment.')}
clos="100" rows="3" warp="virtual"></textarea>
<Button
className="submit-comment" color="success"
className="submit-comment" color="primary"
size="sm" onClick={this.submitComment} >
{gettext('Submit')}</Button>
</div>

View File

@@ -155,7 +155,7 @@ class ReviewComments extends React.Component {
onChange={this.handleCommentChange}
clos="100" rows="3" warp="virtual"
></textarea>
<Button className="comment-btn" color="success" size="sm" onClick={this.submitComment}>{gettext('Submit')}</Button>
<Button className="comment-btn" color="primary" size="sm" onClick={this.submitComment}>{gettext('Submit')}</Button>
</div>
</div>
</div>
@@ -251,7 +251,7 @@ class CommentItem extends React.Component {
onChange={this.handleCommentChange}
clos="100" rows="3" warp="virtual"
></textarea>
<Button className="comment-btn" color="success" size="sm" onClick={this.updateComment} id={item.id}>
<Button className="comment-btn" color="primary" size="sm" onClick={this.updateComment} id={item.id}>
{gettext('Update')}</Button>{' '}
<Button className="comment-btn" color="secondary" size="sm" onClick={this.toggleEditComment}>
{gettext('Cancel')}</Button>