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:
@@ -90,11 +90,16 @@ final class PholioMockViewController extends PholioController {
|
|||||||
$add_comment,
|
$add_comment,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
PhabricatorFeedStoryNotification::updateObjectNotificationViews(
|
||||||
|
$user,
|
||||||
|
$mock->getPHID());
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
$content,
|
$content,
|
||||||
array(
|
array(
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'device' => true,
|
'device' => true,
|
||||||
|
'pageObjects' => array($mock->getPHID()),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user