Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15392012
D15231.id36759.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D15231.id36759.diff
View Options
Index: src/applications/project/controller/PhabricatorProjectBoardViewController.php
===================================================================
--- src/applications/project/controller/PhabricatorProjectBoardViewController.php
+++ src/applications/project/controller/PhabricatorProjectBoardViewController.php
@@ -254,6 +254,13 @@
continue;
}
+ if (!$this->showHidden) {
+ if ($proxy && $proxy->isArchived()) {
+ // Hide archived milestone / subproject columns by default.
+ continue;
+ }
+ }
+
$task_phids = $layout_engine->getColumnObjectPHIDs(
$board_phid,
$column->getPHID());
@@ -307,7 +314,8 @@
$panel->addClass($display_class);
}
- if ($column->isHidden()) {
+ if ($column->isHidden() ||
+ ($column->getProxy() && $column->getProxy()->isArchived())) {
$panel->addClass('project-panel-hidden');
}
@@ -693,7 +701,12 @@
$hide_uri = $this->getApplicationURI($hide_uri);
$hide_uri = $this->getURIWithState($hide_uri);
- if (!$column->isHidden()) {
+ $proxy = $column->getProxy();
+ if ($proxy && $proxy->isMilestone()) {
+ // You can't hide / show milestone columns manually;
+ // instead their visibility is based on the milestone's
+ // status (active / archived).
+ } else if (!$column->isHidden()) {
$column_items[] = id(new PhabricatorActionView())
->setName(pht('Hide Column'))
->setIcon('fa-eye-slash')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 12:50 PM (3 d, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7674776
Default Alt Text
D15231.id36759.diff (1 KB)
Attached To
Mode
D15231: Hide milestone columns when milestone is archived
Attached
Detach File
Event Timeline
Log In to Comment