React to Aphlict disconnects in the UI
Summary: Ref T5365. Surface disconnects in the UI.
Test Plan:
- Connected, then killed the server.
- Saw disconnected event and appropriate update in the UI.
{F169605}
Reviewers: joshuaspence
Reviewed By: joshuaspence
Subscribers: epriestley
Maniphest Tasks: T5365
Differential Revision: https://secure.phabricator.com/D9706
This commit is contained in:
@@ -23,6 +23,8 @@ final class PhabricatorNotificationStatusView extends AphrontTagView {
|
||||
'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.'),
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ package {
|
||||
}
|
||||
|
||||
private function didCloseSocket(event:Event):void {
|
||||
this.externalInvoke('close');
|
||||
this.setStatusOnClients('error', 'error.flash.disconnected');
|
||||
}
|
||||
|
||||
private function didIOErrorSocket(event:IOErrorEvent):void {
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user