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

New: Setting of a resource as archived

parent fdad4e8a
No related branches found
No related tags found
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