1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +01:00

Clear mock notifications when viewing mocks

Summary:
- When viewing a mock, clear unread flag on notifications about it.
  - Show the "lcick to reload" version of the popup when you get a notification about the current mock.

Test Plan: Clicked a notification to clear it.

Reviewers: chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5055
This commit is contained in:
epriestley 2013-02-21 14:35:07 -08:00
parent 60f3780127
commit c73a42a511

View file

@ -90,11 +90,16 @@ final class PholioMockViewController extends PholioController {
$add_comment,
);
PhabricatorFeedStoryNotification::updateObjectNotificationViews(
$user,
$mock->getPHID());
return $this->buildApplicationPage(
$content,
array(
'title' => $title,
'device' => true,
'pageObjects' => array($mock->getPHID()),
));
}