1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Turn the "closed" property on cluster repositories into a nice boolean

Summary:
Ref T10883. Ref T13120. There's an existing "closed" property on repository services that stops new repositories from being allocated there.

Turn it into a nice boolean.

Test Plan: Toggled the value on/off using a nice `<select />` with helpful labels instead of a text area.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13120, T10883

Differential Revision: https://secure.phabricator.com/D19355
This commit is contained in:
epriestley 2018-04-12 06:10:21 -07:00
parent 4068aaef61
commit 6f810d7813

View file

@ -20,7 +20,11 @@ final class AlmanacClusterRepositoryServiceType
public function getFieldSpecifications() {
return array(
'closed' => id(new PhabricatorTextEditField()),
'closed' => id(new PhabricatorBoolEditField())
->setOptions(
pht('Allow New Repositories'),
pht('Prevent New Repositories'))
->setValue(false),
);
}