Back to Browse

Tasks: Editing Tasks

75 views
Apr 20, 2020
6:13

In this video we add the ability to edit tasks and mark their status as complete or incomplete. Steps: 1. Create a new PATCH route that will be used to update a task body and its status 2. Create a new ValidationGuard for updating tasks. This guard extends CreateTaskGuard to enable re-use of the `rules()` method in CreateTaskGuard 3. Call our new guard from the TaskController 4. Add a new text box to Tasks.vue and all of the methods and properties needed to update a task body 5. Handle an optional parameter for task status updates in the UpdateTaskGuard that will update the task status if it is provided to the update route 6. Add a check box for each task in Tasks.vue and use that to mark a task as complete or incomplete Source Code: https://github.com/alpascasts/fireplace/releases/tag/v0.11.0 References: 1. Classes and Inheritance in Kotlin: https://kotlinlang.org/docs/reference/classes.html 2. Alpas Controller Routes: https://alpas.dev/docs/routing#controller-routes

Download

0 formats

No download links available.

Tasks: Editing Tasks | NatokHD