mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01: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:
parent
4068aaef61
commit
6f810d7813
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ final class AlmanacClusterRepositoryServiceType
|
||||||
|
|
||||||
public function getFieldSpecifications() {
|
public function getFieldSpecifications() {
|
||||||
return array(
|
return array(
|
||||||
'closed' => id(new PhabricatorTextEditField()),
|
'closed' => id(new PhabricatorBoolEditField())
|
||||||
|
->setOptions(
|
||||||
|
pht('Allow New Repositories'),
|
||||||
|
pht('Prevent New Repositories'))
|
||||||
|
->setValue(false),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue