freeCodeCamp / league-for-good

An open source sports league management tool
BSD 3-Clause "New" or "Revised" License
163 stars 106 forks source link

Add "archive leagues" feature (#97) #103

Closed domwakeling closed 5 years ago

domwakeling commented 6 years ago

Ability to archive leagues (since they can't be deleted), adding a new expandable 'Archive' entry in the Menu (material-ui Drawer element).

In client/src/actions/league.js

In client/src/components/dashboard/leagueTabs/leagueTabData.js

Write new file client/src/components/dashboard/settings/forms/LeagueArchiveForm.jsx to provide UI in new 'sub-tab

In client/src/components/dashboard/settings/forms/editLeageNameForm.jsx

In client/src/components/dashboard/settings/routes.jsxand client/src/components/routes.js

In client/src/components/nav/Menu.jsx and client/src/components/nav/MenuLeagueItem.jsx

In server/models/league.js

In server/api/auth.js

In server/api/league.js

domwakeling commented 5 years ago

Change made; looks as though I had also made two further minor tweaks (which have likely been superseded in the last year!) which had not been committed/pushed.

paulywill commented 5 years ago

@domwakeling Dwight thanks