Skip to content

Commit

Permalink
Getting the dialogs to actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Oct 22, 2024
1 parent 7a78fc0 commit aee627c
Show file tree
Hide file tree
Showing 24 changed files with 759 additions and 1,137 deletions.
15 changes: 6 additions & 9 deletions lib/Controller/BerichtenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

namespace OCA\ZaakAfhandelApp\Controller;

use GuzzleHttp\Client;
use OCA\ZaakAfhandelApp\Service\CallService;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\IRequest;

class BerichtenController extends Controller
Expand All @@ -30,7 +27,7 @@ public function __construct(
*
* @return JSONResponse
*/
public function index(CallService $callService): JSONResponse
public function index(): JSONResponse
{
// Retrieve all request parameters
$requestParams = $this->request->getParams();
Expand All @@ -50,7 +47,7 @@ public function index(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function show(string $id, CallService $callService): JSONResponse
public function show(string $id): JSONResponse
{
// Fetch the catalog object by its ID
$object = $this->objectService->getObject('berichten', $id);
Expand All @@ -68,7 +65,7 @@ public function show(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function create(CallService $callService): JSONResponse
public function create(): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -91,7 +88,7 @@ public function create(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function update(string $id, CallService $callService): JSONResponse
public function update(string $id): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -114,7 +111,7 @@ public function update(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function destroy(string $id, CallService $callService): JSONResponse
public function destroy(string $id): JSONResponse
{
// Delete the catalog object
$result = $this->objectService->deleteObject('berichten', $id);
Expand Down
14 changes: 6 additions & 8 deletions lib/Controller/KlantenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

namespace OCA\ZaakAfhandelApp\Controller;

use GuzzleHttp\Client;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\IRequest;

class KlantenController extends Controller
Expand All @@ -31,7 +29,7 @@ public function __construct
*
* @return JSONResponse
*/
public function index(CallService $klantenService): JSONResponse
public function index(): JSONResponse
{
// Retrieve all request parameters
$requestParams = $this->request->getParams();
Expand All @@ -51,7 +49,7 @@ public function index(CallService $klantenService): JSONResponse
*
* @return JSONResponse
*/
public function show(string $id, CallService $klantenService): JSONResponse
public function show(string $id): JSONResponse
{
// Fetch the catalog object by its ID
$object = $this->objectService->getObject('klanten', $id);
Expand All @@ -69,7 +67,7 @@ public function show(string $id, CallService $klantenService): JSONResponse
*
* @return JSONResponse
*/
public function create(CallService $callService): JSONResponse
public function create(): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -92,7 +90,7 @@ public function create(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function update(string $id, CallService $callService): JSONResponse
public function update(string $id): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -115,7 +113,7 @@ public function update(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function destroy(string $id, CallService $callService): JSONResponse
public function destroy(string $id): JSONResponse
{
// Delete the catalog object
$result = $this->objectService->deleteObject('klanten', $id);
Expand Down
15 changes: 6 additions & 9 deletions lib/Controller/TakenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

namespace OCA\ZaakAfhandelApp\Controller;

use GuzzleHttp\Client;
use OCA\ZaakAfhandelApp\Service\CallService;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\IRequest;

class TakenController extends Controller
Expand All @@ -29,7 +26,7 @@ public function __construct(
*
* @return JSONResponse
*/
public function index(CallService $klantenService): JSONResponse
public function index(): JSONResponse
{
// Retrieve all request parameters
$requestParams = $this->request->getParams();
Expand All @@ -49,7 +46,7 @@ public function index(CallService $klantenService): JSONResponse
*
* @return JSONResponse
*/
public function show(string $id, CallService $klantenService): JSONResponse
public function show(string $id): JSONResponse
{
// Fetch the catalog object by its ID
$object = $this->objectService->getObject('taken', $id);
Expand All @@ -67,7 +64,7 @@ public function show(string $id, CallService $klantenService): JSONResponse
*
* @return JSONResponse
*/
public function create(CallService $callService): JSONResponse
public function create(): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -90,7 +87,7 @@ public function create(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function update(string $id, CallService $callService): JSONResponse
public function update(string $id): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -113,7 +110,7 @@ public function update(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function destroy(string $id, CallService $callService): JSONResponse
public function destroy(string $id): JSONResponse
{
// Delete the catalog object
$result = $this->objectService->deleteObject('taken', $id);
Expand Down
15 changes: 6 additions & 9 deletions lib/Controller/ZaakTypenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

namespace OCA\ZaakAfhandelApp\Controller;

use GuzzleHttp\Client;
use OCA\ZaakAfhandelApp\Service\CallService;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\IRequest;

class ZaakTypenController extends Controller
Expand All @@ -30,7 +27,7 @@ public function __construct(
*
* @return JSONResponse
*/
public function index(CallService $callService): JSONResponse
public function index(): JSONResponse
{
// Retrieve all request parameters
$requestParams = $this->request->getParams();
Expand All @@ -50,7 +47,7 @@ public function index(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function show(string $id, CallService $callService): JSONResponse
public function show(string $id): JSONResponse
{
// Fetch the catalog object by its ID
$object = $this->objectService->getObject('zaaktypen', $id);
Expand All @@ -68,7 +65,7 @@ public function show(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function create(CallService $callService): JSONResponse
public function create(): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -91,7 +88,7 @@ public function create(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function update(string $id, CallService $callService): JSONResponse
public function update(string $id): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -114,7 +111,7 @@ public function update(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function destroy(string $id, CallService $callService): JSONResponse
public function destroy(string $id): JSONResponse
{
// Delete the catalog object
$result = $this->objectService->deleteObject('zaaktypen', $id);
Expand Down
15 changes: 6 additions & 9 deletions lib/Controller/ZakenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

namespace OCA\ZaakAfhandelApp\Controller;

use GuzzleHttp\Client;
use OCA\ZaakAfhandelApp\Service\CallService;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCA\ZaakAfhandelApp\Service\ObjectService;
use OCP\IRequest;

/**
Expand All @@ -32,7 +29,7 @@ public function __construct(
*
* @return JSONResponse
*/
public function index(CallService $callService): JSONResponse
public function index(): JSONResponse
{
// Retrieve all request parameters
$requestParams = $this->request->getParams();
Expand All @@ -52,7 +49,7 @@ public function index(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function show(string $id, CallService $callService): JSONResponse
public function show(string $id): JSONResponse
{
// Fetch the catalog object by its ID
$object = $this->objectService->getObject('zaken', $id);
Expand All @@ -70,7 +67,7 @@ public function show(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function create(CallService $callService): JSONResponse
public function create(): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -93,7 +90,7 @@ public function create(CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function update(string $id, CallService $callService): JSONResponse
public function update(string $id): JSONResponse
{
// Get all parameters from the request
$data = $this->request->getParams();
Expand All @@ -116,7 +113,7 @@ public function update(string $id, CallService $callService): JSONResponse
*
* @return JSONResponse
*/
public function destroy(string $id, CallService $callService): JSONResponse
public function destroy(string $id): JSONResponse
{
// Delete the catalog object
$result = $this->objectService->deleteObject('zaken', $id);
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/ObjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
private readonly IAppManager $appManager,
private readonly IAppConfig $config,
) {
$this->appName = 'opencatalogi';
$this->appName = 'zaakafhandelapp';
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/modals/Modals.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { navigationStore } from '../store/store.js'
<EditBericht />
<EditTaak />
<EditRol />
<EditZaak />
</div>
</template>

Expand All @@ -19,6 +20,7 @@ import EditKlant from './klanten/EditKlant.vue'
import EditBericht from './berichten/EditBericht.vue'
import EditTaak from './taken/EditTaak.vue'
import EditRol from './rollen/EditRol.vue'
import EditZaak from './zaken/EditZaak.vue'
export default {
name: 'Modals',
Expand All @@ -28,6 +30,7 @@ export default {
EditBericht,
EditTaak,
EditRol,
EditZaak
},
}
</script>
Loading

0 comments on commit aee627c

Please sign in to comment.