@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make conduit certificate readonly and select-on-click

Summary: See comments in <https://secure.phabricator.com/D6331#comment-3> -- make the Conduit Token and Conduit Certificate interfaces readonly and select-on-click.

Test Plan:
- Viewed `/conduit/token/`, verified it was readonly and selected on click.
- Viewed `/settings/panel/conduit/`, likewise.

Reviewers: Avish, btrahan, wotte

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7819

+8
+4
src/applications/conduit/controller/PhabricatorConduitTokenController.php
··· 38 38 'After you copy and paste this token, `arc` will complete '. 39 39 'the certificate install process for you.'); 40 40 41 + Javelin::initBehavior('select-on-click'); 42 + 41 43 $form = id(new AphrontFormView()) 42 44 ->setUser($user) 43 45 ->appendRemarkupInstructions($pre_instructions) ··· 45 47 id(new AphrontFormTextAreaControl()) 46 48 ->setLabel(pht('Token')) 47 49 ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_SHORT) 50 + ->setReadonly(true) 51 + ->setSigil('select-on-click') 48 52 ->setValue($token->getToken())) 49 53 ->appendRemarkupInstructions($post_instructions); 50 54
+4
src/applications/settings/panel/PhabricatorSettingsPanelConduit.php
··· 64 64 $notice = null; 65 65 } 66 66 67 + Javelin::initBehavior('select-on-click'); 68 + 67 69 $cert_form = new AphrontFormView(); 68 70 $cert_form 69 71 ->setUser($user) ··· 77 79 id(new AphrontFormTextAreaControl()) 78 80 ->setLabel(pht('Certificate')) 79 81 ->setHeight(AphrontFormTextAreaControl::HEIGHT_SHORT) 82 + ->setReadonly(true) 83 + ->setSigil('select-on-click') 80 84 ->setValue($user->getConduitCertificate())); 81 85 82 86 $cert_form = id(new PHUIObjectBoxView())