Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F93615
D7819.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7819.diff
View Options
diff --git a/src/applications/conduit/controller/PhabricatorConduitTokenController.php b/src/applications/conduit/controller/PhabricatorConduitTokenController.php
--- a/src/applications/conduit/controller/PhabricatorConduitTokenController.php
+++ b/src/applications/conduit/controller/PhabricatorConduitTokenController.php
@@ -38,13 +38,17 @@
'After you copy and paste this token, `arc` will complete '.
'the certificate install process for you.');
+ Javelin::initBehavior('select-on-click');
+
$form = id(new AphrontFormView())
->setUser($user)
->appendRemarkupInstructions($pre_instructions)
->appendChild(
id(new AphrontFormTextAreaControl())
->setLabel(pht('Token'))
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_SHORT)
+ ->setReadonly(true)
+ ->setSigil('select-on-click')
->setValue($token->getToken()))
->appendRemarkupInstructions($post_instructions);
diff --git a/src/applications/settings/panel/PhabricatorSettingsPanelConduit.php b/src/applications/settings/panel/PhabricatorSettingsPanelConduit.php
--- a/src/applications/settings/panel/PhabricatorSettingsPanelConduit.php
+++ b/src/applications/settings/panel/PhabricatorSettingsPanelConduit.php
@@ -64,6 +64,8 @@
$notice = null;
}
+ Javelin::initBehavior('select-on-click');
+
$cert_form = new AphrontFormView();
$cert_form
->setUser($user)
@@ -77,6 +79,8 @@
id(new AphrontFormTextAreaControl())
->setLabel(pht('Certificate'))
->setHeight(AphrontFormTextAreaControl::HEIGHT_SHORT)
+ ->setReadonly(true)
+ ->setSigil('select-on-click')
->setValue($user->getConduitCertificate()));
$cert_form = id(new PHUIObjectBoxView())
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/kt/rx/bh46qm7bedbatx6c
Default Alt Text
D7819.diff (1 KB)
Attached To
Mode
D7819: Make conduit certificate readonly and select-on-click
Attached
Detach File
Event Timeline
Log In to Comment