Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php b/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php
index 1822810c05..b61961c0f7 100644
--- a/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php
+++ b/src/applications/dashboard/xaction/panel/PhabricatorDashboardTextPanelTextTransaction.php
@@ -1,22 +1,41 @@
<?php
final class PhabricatorDashboardTextPanelTextTransaction
extends PhabricatorDashboardPanelPropertyTransaction {
const TRANSACTIONTYPE = 'text.text';
protected function getPropertyKey() {
return 'text';
}
+ public function getTitle() {
+ return pht(
+ '%s updated the panel text.',
+ $this->renderAuthor());
+ }
+
+ public function hasChangeDetailView() {
+ return true;
+ }
+
+ public function newChangeDetailView() {
+ $viewer = $this->getViewer();
+
+ return id(new PhabricatorApplicationTransactionTextDiffDetailView())
+ ->setViewer($viewer)
+ ->setOldText($this->getOldValue())
+ ->setNewText($this->getNewValue());
+ }
+
public function newRemarkupChanges() {
$changes = array();
$changes[] = $this->newRemarkupChange()
->setOldValue($this->getOldValue())
->setNewValue($this->getNewValue());
return $changes;
}
}

File Metadata

Mime Type
text/x-diff
Expires
Mon, Apr 28, 9:06 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
107902
Default Alt Text
(1 KB)

Event Timeline