Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15439372
D17528.id.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
D17528.id.diff
View Options
diff --git a/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php b/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php
--- a/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php
+++ b/src/applications/dashboard/controller/PhabricatorDashboardQueryPanelInstallController.php
@@ -149,6 +149,19 @@
$redirect_uri = $engine->getQueryResultsPageURI($v_query);
+ if (!$options) {
+ $notice = id(new PHUIInfoView())
+ ->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
+ ->appendChild(pht('You do not have access to any dashboards. To '.
+ 'continue, please create a dashboard first.'));
+
+ return $this->newDialog()
+ ->setTitle(pht('No Dashboards'))
+ ->setWidth(AphrontDialogView::WIDTH_FORM)
+ ->appendChild($notice)
+ ->addCancelButton($redirect_uri);
+ }
+
$form = id(new AphrontFormView())
->setUser($viewer)
->addHiddenInput('engine', $v_engine)
@@ -175,6 +188,7 @@
->appendChild($form->buildLayoutView())
->addCancelButton($redirect_uri)
->addSubmitButton(pht('Add Panel'));
+
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 7:15 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704169
Default Alt Text
D17528.id.diff (1 KB)
Attached To
Mode
D17528: Provide a 'no dashboards' fallback state if you can't add any
Attached
Detach File
Event Timeline
Log In to Comment