mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-02 09:58:24 +01:00
Hide the new Phriction "Publish" operation behind the "Prototype" toggle
Summary: Ref T13077. This is currently a little too confusing to go out into the world, mostly because there's no way to edit documents without auto-publishing them. Keep it out of the spotlight for this release. Test Plan: Viewed Phriction, saw publish operation marked as a prototype. Reviewers: amckinley Maniphest Tasks: T13077 Differential Revision: https://secure.phabricator.com/D19627
This commit is contained in:
parent
18e8d9a452
commit
26d9ee456f
1 changed files with 11 additions and 7 deletions
|
@ -432,13 +432,17 @@ final class PhrictionDocumentController
|
||||||
|
|
||||||
$publish_uri = "/phriction/publish/{$id}/{$content_id}/";
|
$publish_uri = "/phriction/publish/{$id}/{$content_id}/";
|
||||||
|
|
||||||
$curtain->addAction(
|
if (PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) {
|
||||||
id(new PhabricatorActionView())
|
$publish_name = pht('Publish (Prototype!)');
|
||||||
->setName($publish_name)
|
|
||||||
->setIcon('fa-upload')
|
$curtain->addAction(
|
||||||
->setDisabled(!$can_publish)
|
id(new PhabricatorActionView())
|
||||||
->setWorkflow(true)
|
->setName($publish_name)
|
||||||
->setHref($publish_uri));
|
->setIcon('fa-upload')
|
||||||
|
->setDisabled(!$can_publish)
|
||||||
|
->setWorkflow(true)
|
||||||
|
->setHref($publish_uri));
|
||||||
|
}
|
||||||
|
|
||||||
if ($document->getStatus() == PhrictionDocumentStatus::STATUS_EXISTS) {
|
if ($document->getStatus() == PhrictionDocumentStatus::STATUS_EXISTS) {
|
||||||
$curtain->addAction(
|
$curtain->addAction(
|
||||||
|
|
Loading…
Add table
Reference in a new issue