1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

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:
epriestley 2014-06-24 09:41:40 -07:00
parent f8e7d8f65c
commit 79366795e7
3 changed files with 3 additions and 1 deletions

View file

@ -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.'),
),
));

View file

@ -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.