@@ -107,24 +107,13 @@ angular.module('starter').controller('RemindersInboxCtrl', ["$scope", "$state",
107107 $rootScope . hideBackButton = false ;
108108 } ) ;
109109 var setPageTitle = function ( ) {
110- if ( $stateParams . today ) {
111- if ( getVariableCategoryName ( ) === 'Treatments' ) {
112- $scope . state . title = "Today's Scheduled Meds" ;
113- $scope . state . favoritesTitle = "As-Needed Meds" ;
114- } else if ( getVariableCategoryName ( ) ) {
115- $scope . state . title = "Today's Scheduled " + getVariableCategoryName ( ) ;
116- } else {
117- $scope . state . title = "Today's Reminder Notifications" ;
118- }
110+ if ( getVariableCategoryName ( ) === 'Treatments' ) {
111+ $scope . state . title = 'Overdue Meds' ;
112+ $scope . state . favoritesTitle = "As-Needed Meds" ;
113+ } else if ( getVariableCategoryName ( ) ) {
114+ $scope . state . title = $filter ( 'wordAliases' ) ( getVariableCategoryName ( ) ) + " " + $filter ( 'wordAliases' ) ( "Reminder Inbox" ) ;
119115 } else {
120- if ( getVariableCategoryName ( ) === 'Treatments' ) {
121- $scope . state . title = 'Overdue Meds' ;
122- $scope . state . favoritesTitle = "As-Needed Meds" ;
123- } else if ( getVariableCategoryName ( ) ) {
124- $scope . state . title = $filter ( 'wordAliases' ) ( getVariableCategoryName ( ) ) + " " + $filter ( 'wordAliases' ) ( "Reminder Inbox" ) ;
125- } else {
126- $scope . state . title = 'Inbox' ;
127- }
116+ $scope . state . title = 'Inbox' ;
128117 }
129118 } ;
130119 var lastButtonPressTimeStamp , lastClientY , lastClientX ;
@@ -456,17 +445,11 @@ angular.module('starter').controller('RemindersInboxCtrl', ["$scope", "$state",
456445 } ;
457446 $rootScope . $on ( 'broadcastGetTrackingReminderNotifications' , function ( ) {
458447 qmLog . info ( 'getTrackingReminderNotifications broadcast received..' ) ;
459- if ( ! $stateParams . today ) {
460- getFilteredTrackingReminderNotificationsFromLocalStorage ( ) ;
461- }
448+ getFilteredTrackingReminderNotificationsFromLocalStorage ( ) ;
462449 } ) ;
463450 var getTrackingReminderNotifications = function ( ) {
464451 qmLog . info ( 'RemindersInboxCtrl called getTrackingReminderNotifications: ' + window . location . href ) ;
465- if ( $stateParams . today ) {
466- getFilteredTodayTrackingReminderNotifications ( ) ;
467- } else {
468- getFilteredTrackingReminderNotificationsFromLocalStorage ( ) ;
469- }
452+ getFilteredTrackingReminderNotificationsFromLocalStorage ( ) ;
470453 } ;
471454 function shouldWeShowZeroButton ( trackingReminderNotification ) {
472455 return trackingReminderNotification . inputType === 'defaultValue' ||
0 commit comments