Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15417792
D11753.vson.id28336.whitespaceshow-all.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11753.vson.id28336.whitespaceshow-all.diff
View Options
diff --git a/src/applications/dashboard/application/PhabricatorDashboardApplication.php b/src/applications/dashboard/application/PhabricatorDashboardApplication.php
--- a/src/applications/dashboard/application/PhabricatorDashboardApplication.php
+++ b/src/applications/dashboard/application/PhabricatorDashboardApplication.php
@@ -55,8 +55,4 @@
);
}
- public function canUninstall() {
- return false;
- }
-
}
diff --git a/src/applications/home/application/PhabricatorHomeApplication.php b/src/applications/home/application/PhabricatorHomeApplication.php
--- a/src/applications/home/application/PhabricatorHomeApplication.php
+++ b/src/applications/home/application/PhabricatorHomeApplication.php
@@ -34,10 +34,6 @@
return false;
}
- public function canUninstall() {
- return false;
- }
-
public function getApplicationOrder() {
return 9;
}
diff --git a/src/applications/meta/controller/PhabricatorApplicationUninstallController.php b/src/applications/meta/controller/PhabricatorApplicationUninstallController.php
--- a/src/applications/meta/controller/PhabricatorApplicationUninstallController.php
+++ b/src/applications/meta/controller/PhabricatorApplicationUninstallController.php
@@ -63,10 +63,28 @@
}
} else {
if ($selected->canUninstall()) {
- $dialog->setTitle('Confirmation')
- ->appendChild(
- 'Really Uninstall '.$selected->getName().' application?')
- ->addSubmitButton('Uninstall');
+ $dialog->setTitle(pht('Really Uninstall Application?'));
+
+ if ($selected instanceof PhabricatorHomeApplication) {
+ $dialog
+ ->appendParagraph(
+ pht(
+ 'Are you absolutely certain you want to uninstall the Home '.
+ 'application?'))
+ ->appendParagraph(
+ pht(
+ 'This is very unusual and will leave you without any '.
+ 'content on the Phabricator home page. You should only '.
+ 'do this if you are certain you know what you are doing.'))
+ ->addSubmitButton(pht('Completely Break Phabricator'));
+ } else {
+ $dialog
+ ->appendParagraph(
+ pht(
+ 'Really uninstall the %s application?',
+ $selected->getName()))
+ ->addSubmitButton(pht('Uninstall'));
+ }
} else {
$dialog->setTitle('Information')
->appendChild(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 6:35 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7587548
Default Alt Text
D11753.vson.id28336.whitespaceshow-all.diff (2 KB)
Attached To
Mode
D11753: Allow Home and Dashboards to be uninstalled
Attached
Detach File
Event Timeline
Log In to Comment