Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13963619
D18848.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1021 B
Referenced Files
None
Subscribers
None
D18848.id.diff
View Options
diff --git a/src/applications/drydock/editor/DrydockBlueprintEditEngine.php b/src/applications/drydock/editor/DrydockBlueprintEditEngine.php
--- a/src/applications/drydock/editor/DrydockBlueprintEditEngine.php
+++ b/src/applications/drydock/editor/DrydockBlueprintEditEngine.php
@@ -124,6 +124,17 @@
->setTransactionType(DrydockBlueprintNameTransaction::TRANSACTIONTYPE)
->setIsRequired(true)
->setValue($object->getBlueprintName()),
+ id(new PhabricatorBoolEditField())
+ ->setKey('disable')
+ ->setLabel(pht('Disabled'))
+ ->setIsConduitOnly(true)
+ ->setTransactionType(
+ DrydockBlueprintDisableTransaction::TRANSACTIONTYPE)
+ ->setDescription(pht('Disable the blueprint.'))
+ ->setConduitDescription(pht('Disable or enable the blueprint.'))
+ ->setConduitTypeDescription(pht('True to disable the blueprint.'))
+ ->setOptions(pht('Enable'), pht('Disable'))
+ ->setValue($object->getIsDisabled()),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 16 2024, 4:54 PM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718318
Default Alt Text
D18848.id.diff (1021 B)
Attached To
Mode
D18848: Allow Drydock blueprints to be disabled and enabled via API call
Attached
Detach File
Event Timeline
Log In to Comment