mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Calendar builtin queries should include a Day View
Summary: Closes T8108, Calendar sidebar should include a Day View builtin query Test Plan: Open Calendar, navigate to Day View in left sidebar, Day View with event preview should work as expected Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T8108 Differential Revision: https://secure.phabricator.com/D12767
This commit is contained in:
parent
8b05487dd0
commit
314dc5b957
1 changed files with 3 additions and 0 deletions
|
@ -220,6 +220,7 @@ final class PhabricatorCalendarEventSearchEngine
|
||||||
protected function getBuiltinQueryNames() {
|
protected function getBuiltinQueryNames() {
|
||||||
$names = array(
|
$names = array(
|
||||||
'month' => pht('Month View'),
|
'month' => pht('Month View'),
|
||||||
|
'day' => pht('Day View'),
|
||||||
'upcoming' => pht('Upcoming Events'),
|
'upcoming' => pht('Upcoming Events'),
|
||||||
'all' => pht('All Events'),
|
'all' => pht('All Events'),
|
||||||
);
|
);
|
||||||
|
@ -242,6 +243,8 @@ final class PhabricatorCalendarEventSearchEngine
|
||||||
switch ($query_key) {
|
switch ($query_key) {
|
||||||
case 'month':
|
case 'month':
|
||||||
return $query->setParameter('display', 'month');
|
return $query->setParameter('display', 'month');
|
||||||
|
case 'day':
|
||||||
|
return $query->setParameter('display', 'day');
|
||||||
case 'upcoming':
|
case 'upcoming':
|
||||||
return $query->setParameter('upcoming', true);
|
return $query->setParameter('upcoming', true);
|
||||||
case 'all':
|
case 'all':
|
||||||
|
|
Loading…
Reference in a new issue