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:
		@@ -121,14 +121,13 @@ final class PHUIDiffInlineCommentEditView
 | 
			
		||||
  private function renderBody() {
 | 
			
		||||
    $buttons = array();
 | 
			
		||||
 | 
			
		||||
    $buttons[] = phutil_tag('button', array(), pht('Save Draft'));
 | 
			
		||||
    $buttons[] = javelin_tag(
 | 
			
		||||
      'button',
 | 
			
		||||
      array(
 | 
			
		||||
        'sigil' => 'inline-edit-cancel',
 | 
			
		||||
        'class' => 'grey',
 | 
			
		||||
      ),
 | 
			
		||||
      pht('Cancel'));
 | 
			
		||||
    $buttons[] = id(new PHUIButtonView())
 | 
			
		||||
      ->setText(pht('Save Draft'));
 | 
			
		||||
 | 
			
		||||
    $buttons[] = id(new PHUIButtonView())
 | 
			
		||||
      ->setText(pht('Cancel'))
 | 
			
		||||
      ->setColor(PHUIButtonView::GREY)
 | 
			
		||||
      ->addSigil('inline-edit-cancel');
 | 
			
		||||
 | 
			
		||||
    $title = phutil_tag(
 | 
			
		||||
      'div',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user