Page MenuHomePhabricator

D17307.id41624.diff
No OneTemporary

D17307.id41624.diff

diff --git a/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php b/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php
--- a/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php
+++ b/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php
@@ -11,6 +11,24 @@
return "/home/menu/{$path}";
}
+ protected function buildItemViewContent(
+ PhabricatorProfileMenuItemConfiguration $item) {
+ $viewer = $this->getViewer();
+
+ // Add content to the document so that you can drag-and-drop files onto
+ // the home page or any home dashboard to upload them.
+
+ $upload = id(new PhabricatorGlobalUploadTargetView())
+ ->setUser($viewer);
+
+ $content = parent::buildItemViewContent($item);
+
+ return array(
+ $content,
+ $upload,
+ );
+ }
+
protected function getBuiltinProfileItems($object) {
$viewer = $this->getViewer();
$items = array();
diff --git a/src/applications/home/view/PHUIHomeView.php b/src/applications/home/view/PHUIHomeView.php
--- a/src/applications/home/view/PHUIHomeView.php
+++ b/src/applications/home/view/PHUIHomeView.php
@@ -12,15 +12,6 @@
}
protected function getTagContent() {
- $viewer = $this->getViewer();
-
- return array(
- $this->buildMainResponse(),
- id(new PhabricatorGlobalUploadTargetView())->setUser($viewer),
- );
- }
-
- private function buildMainResponse() {
require_celerity_resource('phabricator-dashboard-css');
$viewer = $this->getViewer();
diff --git a/src/applications/search/engine/PhabricatorProfileMenuEngine.php b/src/applications/search/engine/PhabricatorProfileMenuEngine.php
--- a/src/applications/search/engine/PhabricatorProfileMenuEngine.php
+++ b/src/applications/search/engine/PhabricatorProfileMenuEngine.php
@@ -685,7 +685,7 @@
->setURI($this->getConfigureURI());
}
- private function buildItemViewContent(
+ protected function buildItemViewContent(
PhabricatorProfileMenuItemConfiguration $item) {
return $item->newPageContent();
}

File Metadata

Mime Type
text/plain
Expires
May 15 2024, 12:08 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6277260
Default Alt Text
D17307.id41624.diff (2 KB)

Event Timeline