Merge branch 'fix/backup-ui' into v2
This commit is contained in:
commit
0ab124f026
6 changed files with 23 additions and 10 deletions
|
@ -44,7 +44,7 @@ class BackupController extends ClientApiController
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns all of the backups for a given server instance in a paginated
|
||||
* Returns all the backups for a given server instance in a paginated
|
||||
* result set.
|
||||
*
|
||||
* @throws \Illuminate\Auth\Access\AuthorizationException
|
||||
|
@ -60,6 +60,9 @@ class BackupController extends ClientApiController
|
|||
|
||||
return $this->fractal->collection($server->backups()->paginate($limit))
|
||||
->transformWith($this->getTransformer(BackupTransformer::class))
|
||||
->addMeta([
|
||||
'used_backup_count' => $this->initiateBackupService->getNonFailedBackups($server)->count(),
|
||||
])
|
||||
->toArray();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue