Skip to content
Snippets Groups Projects
Commit 2d76b071 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Merge branch 'Topic/1594-SetReadOnlyResources' into 'Product/1573-ReadOnlyResources'

Topic/1594 set read only resources

See merge request !130
parents fdad4e8a 2f217968
No related tags found
2 merge requests!132Product/1573 ReadOnlyResources,!130Topic/1594 set read only resources
...@@ -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