From 98a29f3de90af1b40924934c5fd6b8ee1e15bd32 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 20 Jan 2017 16:56:30 +0000 Subject: [PATCH] Put "View Edit History" above "Remove Comment" in timeline comment action dropdown Summary: Fixes T12131. Test Plan: {F2449700} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12131 Differential Revision: https://secure.phabricator.com/D17234 --- src/view/phui/PHUITimelineEventView.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/view/phui/PHUITimelineEventView.php b/src/view/phui/PHUITimelineEventView.php index 41113a1f14..142ea1e87d 100644 --- a/src/view/phui/PHUITimelineEventView.php +++ b/src/view/phui/PHUITimelineEventView.php @@ -646,6 +646,14 @@ final class PHUITimelineEventView extends AphrontView { } } + if ($this->getIsEdited()) { + $items[] = id(new PhabricatorActionView()) + ->setIcon('fa-list') + ->setHref('/transactions/history/'.$xaction_phid.'/') + ->setName(pht('View Edit History')) + ->setWorkflow(true); + } + if ($this->getIsRemovable()) { $items[] = id(new PhabricatorActionView()) ->setType(PhabricatorActionView::TYPE_DIVIDER); @@ -663,14 +671,6 @@ final class PHUITimelineEventView extends AphrontView { } - if ($this->getIsEdited()) { - $items[] = id(new PhabricatorActionView()) - ->setIcon('fa-list') - ->setHref('/transactions/history/'.$xaction_phid.'/') - ->setName(pht('View Edit History')) - ->setWorkflow(true); - } - return $items; }