Skip to content
Snippets Groups Projects
Commit c8cdb64d authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Merge branch 'Sprint/2021-15' into 'master'

Sprint/2021 15

See merge request !131
parents fdad4e8a 8002b078
Branches
Tags
1 merge request!131Sprint/2021 15
...@@ -66,4 +66,16 @@ export class ResourceApi { ...@@ -66,4 +66,16 @@ export class ResourceApi {
.then(thenHandler) .then(thenHandler)
.catch(catchHandler); .catch(catchHandler);
} }
public static setResourceReadonly(
resourceId: string,
isResourceReadOnly: boolean,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.post(getResourceApiUrl() + resourceId + '/setReadonly?status='+ isResourceReadOnly)
.then(thenHandler)
.catch(catchHandler);
}
} }
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment