Client/update requested #42

Merged
KevinMidboe merged 16 commits from client/update_requested into master 2017-10-20 16:13:30 +00:00

16 Commits

Author SHA1 Message Date
e114cff32f This will be handling all http requests. 2017-10-20 18:11:34 +02:00
cdba914758 Where all our button components will recide. 2017-10-20 18:11:15 +02:00
5f13ad202c Added import of fetchJSON function in http 2017-10-20 18:10:53 +02:00
8fa7f7f918 Just added a justify content variable 2017-10-20 18:09:43 +02:00
b2f4151850 Movie object now uses http functions when submitting a post for a movie. 2017-10-20 18:08:31 +02:00
45a84cbf85 The admin page that has all the fetched elements now prints all the elements out in a grid. Tried a cool thing on how to render the dropdown for changing the status of a element, but its not working atm. 2017-10-20 17:20:43 +02:00
42d0b40825 Does not fit on this branch, but updated the key value, so it is concat of both id and index of the map function for search results. It was prev just the index, and when rapped this hits same value, which is unacceptable by react. 2017-10-07 14:52:49 +02:00
d9a22f506e When posting a request, the type is also added to the database. 2017-10-06 15:38:22 +02:00
307a8352a3 Now takes both id and type because there is two different sets of id pools, and need to select the corrent one. 2017-10-06 15:37:09 +02:00
3c372aab92 Added returnstatement to updateRequestedById and fixed the sql query. 2017-10-06 15:19:08 +02:00
650c2603e4 Changed the input path of requestRepo 2017-10-06 15:16:45 +02:00
fb479e7a37 Renamed function in requestRepo to updateRequestedById 2017-10-06 15:14:31 +02:00
ac38dacedd Changed database table name. 2017-10-06 15:04:50 +02:00
f54bd0f743 Added a function for updating the status from a given id in requests database. 2017-10-06 15:04:18 +02:00
61c242b5eb Passes the id from request parameter and status we want to change to from the request body. 2017-10-06 15:03:47 +02:00
51d446f378 Added endpoint for updating a requested item. 2017-10-06 15:02:44 +02:00