Differential D11143 Diff 27108 src/applications/notification/view/PhabricatorNotificationStatusView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/view/PhabricatorNotificationStatusView.php
<?php | <?php | ||||
final class PhabricatorNotificationStatusView extends AphrontTagView { | final class PhabricatorNotificationStatusView extends AphrontTagView { | ||||
protected function getTagAttributes() { | protected function getTagAttributes() { | ||||
if (!$this->getID()) { | if (!$this->getID()) { | ||||
$this->setID(celerity_generate_unique_node_id()); | $this->setID(celerity_generate_unique_node_id()); | ||||
} | } | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'aphlict-status', | 'aphlict-status', | ||||
array( | array( | ||||
'nodeID' => $this->getID(), | 'nodeID' => $this->getID(), | ||||
'pht' => array( | 'pht' => array( | ||||
'setup' => pht('Setting Up Client'), | 'setup' => pht('Setting Up Client'), | ||||
'start' => pht('Starting Client'), | 'open' => pht('Connected'), | ||||
'ready' => pht('Ready to Connect'), | 'closed' => pht('Disconnected'), | ||||
'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.'), | |||||
'error.flash.disconnected' => pht( | |||||
'Disconnected from notification server.'), | |||||
), | ), | ||||
)); | )); | ||||
return array( | return array( | ||||
'class' => 'aphlict-connection-status', | 'class' => 'aphlict-connection-status', | ||||
); | ); | ||||
} | } | ||||
} | } |