1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Use Notification Status in Conpherence

Summary: Adds a connection status message in Conpherence

Test Plan: Check status

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D16625
This commit is contained in:
Chad Little 2016-09-28 15:16:29 -07:00
parent 5d1359d78f
commit aa248a6b20
2 changed files with 10 additions and 1 deletions

View file

@ -166,7 +166,7 @@ final class ConpherenceViewController extends
$this->initBehavior('conpherence-pontificate');
if ($participating) {
$action = ConpherenceUpdateActions::MESSAGE;
$status = pht('I\'ll find something to put here.');
$status = new PhabricatorNotificationStatusView();
} else {
$action = ConpherenceUpdateActions::JOIN_ROOM;
$status = pht('Sending a message will also join the room.');

View file

@ -23,4 +23,13 @@ final class PhabricatorNotificationStatusView extends AphrontTagView {
);
}
protected function getTagContent() {
$have = PhabricatorEnv::getEnvConfig('notification.servers');
if ($have) {
return pht('Connecting...');
} else {
return pht('Notification server not enabled');
}
}
}