mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Don't show "Primary Hashtag" when creating a project
Summary: Fixes T6598, "Primary Hashtag" field should only be visible in edit mode of existing projects. Test Plan: Create project, "Primary Hashtag" field should be hidden. Edit an existing project, "Primary Hashtag" field should appear above "Additional Hashtags" as before. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T6598 Differential Revision: https://secure.phabricator.com/D10964
This commit is contained in:
parent
db51d7d92a
commit
aeb4267b95
1 changed files with 8 additions and 3 deletions
|
@ -220,12 +220,17 @@ final class PhabricatorProjectEditDetailsController
|
||||||
->setLabel(pht('Color'))
|
->setLabel(pht('Color'))
|
||||||
->setName('color')
|
->setName('color')
|
||||||
->setValue($v_color)
|
->setValue($v_color)
|
||||||
->setOptions($shades))
|
->setOptions($shades));
|
||||||
->appendChild(
|
|
||||||
|
if (!$is_new) {
|
||||||
|
$form->appendChild(
|
||||||
id(new AphrontFormStaticControl())
|
id(new AphrontFormStaticControl())
|
||||||
->setLabel(pht('Primary Hashtag'))
|
->setLabel(pht('Primary Hashtag'))
|
||||||
->setCaption(pht('The primary hashtag is derived from the name.'))
|
->setCaption(pht('The primary hashtag is derived from the name.'))
|
||||||
->setValue($v_primary_slug))
|
->setValue($v_primary_slug));
|
||||||
|
}
|
||||||
|
|
||||||
|
$form
|
||||||
->appendChild(
|
->appendChild(
|
||||||
id(new AphrontFormTextControl())
|
id(new AphrontFormTextControl())
|
||||||
->setLabel(pht('Additional Hashtags'))
|
->setLabel(pht('Additional Hashtags'))
|
||||||
|
|
Loading…
Reference in a new issue