|
325 | 325 | ->label('permission', 'public') |
326 | 326 | ->label('scope', 'console') |
327 | 327 | ->param('databaseId', '', new UID(), 'Database unique ID.') |
328 | | - ->param('collection', '', new UID(), 'Collection unique ID.') |
| 328 | + ->param('collectionId', '', new UID(), 'Collection unique ID.') |
329 | 329 | ->inject('layout') |
330 | | - ->action(function (string $databaseId, string $collection, View $layout) { |
| 330 | + ->action(function (string $databaseId, string $collectionId, View $layout) { |
331 | 331 |
|
332 | 332 | $logs = new View(__DIR__ . '/../../views/console/comps/logs.phtml'); |
333 | 333 | $logs |
334 | 334 | ->setParam('interval', App::getEnv('_APP_MAINTENANCE_RETENTION_AUDIT', 0)) |
335 | 335 | ->setParam('method', 'databases.listDocumentLogs') |
336 | 336 | ->setParam('params', [ |
337 | 337 | 'database-id' => '{{router.params.databaseId}}', |
338 | | - 'collection-id' => '{{router.params.collection}}', |
| 338 | + 'collection-id' => '{{router.params.collectionId}}', |
339 | 339 | 'document-id' => '{{router.params.id}}', |
340 | 340 | ]) |
341 | 341 | ; |
|
352 | 352 | Database::PERMISSION_DELETE, |
353 | 353 | ]) |
354 | 354 | ->setParam('params', [ |
355 | | - 'collection-id' => '{{router.params.collection}}', |
| 355 | + 'collection-id' => '{{router.params.collectionId}}', |
356 | 356 | 'database-id' => '{{router.params.databaseId}}', |
357 | 357 | 'document-id' => '{{router.params.id}}', |
358 | 358 | ]); |
|
362 | 362 | $page |
363 | 363 | ->setParam('new', false) |
364 | 364 | ->setParam('database', $databaseId) |
365 | | - ->setParam('collection', $collection) |
| 365 | + ->setParam('collection', $collectionId) |
366 | 366 | ->setParam('permissions', $permissions) |
367 | 367 | ->setParam('logs', $logs) |
368 | 368 | ; |
|
377 | 377 | ->label('permission', 'public') |
378 | 378 | ->label('scope', 'console') |
379 | 379 | ->param('databaseId', '', new UID(), 'Database unique ID.') |
380 | | - ->param('collection', '', new UID(), 'Collection unique ID.') |
| 380 | + ->param('collectionId', '', new UID(), 'Collection unique ID.') |
381 | 381 | ->inject('layout') |
382 | | - ->action(function (string $databaseId, string $collection, View $layout) { |
| 382 | + ->action(function (string $databaseId, string $collectionId, View $layout) { |
383 | 383 |
|
384 | 384 | $permissions = new View(__DIR__ . '/../../views/console/comps/permissions-matrix.phtml'); |
385 | 385 |
|
|
392 | 392 | Database::PERMISSION_DELETE, |
393 | 393 | ]) |
394 | 394 | ->setParam('params', [ |
395 | | - 'collection-id' => '{{router.params.collection}}', |
| 395 | + 'collection-id' => '{{router.params.collectionId}}', |
396 | 396 | 'database-id' => '{{router.params.databaseId}}', |
397 | 397 | 'document-id' => '{{router.params.id}}', |
398 | 398 | ]); |
|
402 | 402 | $page |
403 | 403 | ->setParam('new', true) |
404 | 404 | ->setParam('database', $databaseId) |
405 | | - ->setParam('collection', $collection) |
| 405 | + ->setParam('collection', $collectionId) |
406 | 406 | ->setParam('permissions', $permissions) |
407 | 407 | ->setParam('logs', new View()) |
408 | 408 | ; |
|
0 commit comments