Closed tceluzza closed 2 years ago
I think I've fixed everything - uses one one loadCrews
function, doesn't check duty sups when checking if a D-T/CC-T is on, and allows a member to be set as both duty sup and another position in the Modify Schedule page on the website.
This adds a
dutysup
row to thecrews
table and thedefault_crews
table in the database. It also adjusts theModify Schedule
andEdit Default Schedule
pages on the website to show a column for Duty Supervisor.Since
js/controllers/NightCrewsCtrl.js
andjs/controllers/ModifyScheduleCtrl.js
both used the sameloadCrews()
function to display the crew, the DS was appearing on the Night Crews page, I added a second functionloadCrewsNoDS
that removes the DS column from the Night Crews Page. Alternatively, it could be removed when being displayed, leaving it in the array, which would only require one function. Let me know if you think that'd be better!