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

Merge branch 'Product/1573-ReadOnlyResources' into 'Sprint/2021-15'

Product/1573 ReadOnlyResources

See merge request !132
parents fdad4e8a efd9c3c6
Branches
Tags
2 merge requests!132Product/1573 ReadOnlyResources,!131Sprint/2021 15
......@@ -66,4 +66,16 @@ export class ResourceApi {
.then(thenHandler)
.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