Differential D9700 Diff 23293 src/applications/notification/view/PhabricatorNotificationStatusView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/view/PhabricatorNotificationStatusView.php
- This file was added.
| <?php | |||||
| final class PhabricatorNotificationStatusView extends AphrontTagView { | |||||
| protected function getTagAttributes() { | |||||
| if (!$this->getID()) { | |||||
| $this->setID(celerity_generate_unique_node_id()); | |||||
| } | |||||
| Javelin::initBehavior( | |||||
| 'aphlict-status', | |||||
| array( | |||||
| 'nodeID' => $this->getID(), | |||||
| 'pht' => array( | |||||
| 'setup' => pht('Setting Up Client'), | |||||
| 'start' => pht('Starting Client'), | |||||
| 'ready' => pht('Ready to Connect'), | |||||
| 'connecting' => pht('Connecting...'), | |||||
| 'connected' => pht('Connected'), | |||||
| 'error' => pht('Connection Error'), | |||||
| 'client' => pht('Connected Locally'), | |||||
| 'error.flash.xdomain' => pht( | |||||
| 'Unable to connect to Flash Policy Server. Check that the '. | |||||
| 'notification server is running and port 843 is not firewalled.'), | |||||
| ), | |||||
| )); | |||||
| return array( | |||||
| 'class' => 'aphlict-connection-status', | |||||
| ); | |||||
| } | |||||
| } | |||||