Enrich Revit BCF snapshots with snapshot_type

pull/7944/head
Wieland Lindenthal 5 years ago
parent 04c47226a9
commit 99c396775f
  1. 10
      frontend/src/app/modules/bcf/bcf-buttons/bcf-add-viewpoint-button.component.ts

@ -76,13 +76,19 @@ export class BcfAddViewpointButtonComponent implements OnInit, OnDestroy {
private saveViewpoint(message:any):void {
console.log('save viewpoint with', message);
var viewpointData = this.tmpViewpoint;
var viewpointJson = message["messagePayload"];
viewpointJson.snapshot = {
snapshot_type: 'png',
snapshot_data: viewpointJson.snapshot
};
const headers = new HttpHeaders()
.set("Content-Type", "application/json");
this.httpClient
.post(
`/api/bcf/2.1/projects/${this.projectId()}/topics/${this.topicGuid()}/viewpoints`,
viewpointData,
viewpointJson,
{
headers: headers,
withCredentials: true,

Loading…
Cancel
Save