diff options
Diffstat (limited to 'frontend/src/app/_services/datasets.service.ts')
-rw-r--r-- | frontend/src/app/_services/datasets.service.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/src/app/_services/datasets.service.ts b/frontend/src/app/_services/datasets.service.ts index 42fa5e55..11838b1d 100644 --- a/frontend/src/app/_services/datasets.service.ts +++ b/frontend/src/app/_services/datasets.service.ts @@ -70,4 +70,12 @@ export class DatasetsService { downloadFile(id: string): Observable<Blob> { return this.http.get(`${Configuration.settings.apiURL}/file/Download?id=` + id, { headers: this.authService.authHeader(), responseType: 'blob' }); } + + updateDatasetAccessibleByLink(id: string, acessibleByLink: boolean) { + return this.http.put(`${Configuration.settings.apiURL}/dataset/updateAccessibleByLink/` + id, acessibleByLink, { headers: this.authService.authHeader(), responseType: 'text' }); + } + + updateDatasetIsPublic(id: string, isPublic: boolean) { + return this.http.put(`${Configuration.settings.apiURL}/dataset/updateIsPublic/` + id, isPublic, { headers: this.authService.authHeader(), responseType: 'text' }); + } } |