Fix cancel button on inline comment view

Summary: Switch over to PHUIButtonView

Test Plan: Cancel, Edit, Submit new inline diff comment.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18120
This commit is contained in:
Chad Little
2017-06-13 10:03:28 -07:00
parent 6f7b31fbf8
commit 21d16c7236

View File

@@ -121,14 +121,13 @@ final class PHUIDiffInlineCommentEditView
private function renderBody() { private function renderBody() {
$buttons = array(); $buttons = array();
$buttons[] = phutil_tag('button', array(), pht('Save Draft')); $buttons[] = id(new PHUIButtonView())
$buttons[] = javelin_tag( ->setText(pht('Save Draft'));
'button',
array( $buttons[] = id(new PHUIButtonView())
'sigil' => 'inline-edit-cancel', ->setText(pht('Cancel'))
'class' => 'grey', ->setColor(PHUIButtonView::GREY)
), ->addSigil('inline-edit-cancel');
pht('Cancel'));
$title = phutil_tag( $title = phutil_tag(
'div', 'div',