Skip to content

Commit

Permalink
fix. date picker hidden when adding new appointment (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go authored and Phanindra-tw committed Jan 19, 2024
1 parent 1633760 commit 95e5eb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ angular
}
}).state('home.manage.appointments.calendar.new', {
url: '/new',
tabName: 'appointments',
params: {
appointment: null
},
Expand All @@ -111,6 +112,7 @@ angular
}
}).state('home.manage.appointments.calendar.edit', {
url: '/:uuid?isRecurring',
tabName: 'appointments',
params: {
isRecurring: null
},
Expand All @@ -137,6 +139,7 @@ angular
}
}).state('home.manage.appointments.list.new', {
url: '/new',
tabName: 'appointments',
views: {
'content@appointment': {
template: '<react-add-appointment-wrapper />'
Expand All @@ -152,6 +155,7 @@ angular
}
}).state('home.manage.appointments.list.edit', {
url: '/:uuid?isRecurring',
tabName: 'appointments',
params: {
isRecurring: null
},
Expand Down Expand Up @@ -196,6 +200,7 @@ angular
}
}).state('home.manage.awaitingappointments.list.new', {
url: '/new',
tabName: 'awaitingappointments',
views: {
'content@appointment': {
template: '<react-add-appointment-wrapper />'
Expand All @@ -211,6 +216,7 @@ angular
}
}).state('home.manage.awaitingappointments.list.edit', {
url: '/:uuid?isRecurring',
tabName: 'awaitingappointments',
params: {
isRecurring: null
},
Expand Down
2 changes: 1 addition & 1 deletion src/directives/datePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ angular.module('bahmni.appointments')
};

$scope.showDatePicker = function () {
return $state.current.tabName === "appointments" ? true : false;
return $state.current.tabName === "awaitingappointments" ? false : true;
}

var viewDateChange = function () {
Expand Down

0 comments on commit 95e5eb8

Please sign in to comment.