Skip to content

Commit

Permalink
Refs #2 File Download Archive first step working
Browse files Browse the repository at this point in the history
  • Loading branch information
doumdi committed Apr 22, 2024
1 parent 803cd0a commit 12e3c52
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Frontend/DashboardsViewer/content/App.qml
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,12 @@ Window {
menu.visible = false;
}
}

Connections {
target: UserClient
onUserEvent: function(event) {
console.log("UserEvent: ", event)
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,19 @@ Item {
}

}

function downloadParticipantArchive(id_participant) {

if (id_participant)
{
// Step #1, Call the Archive API
params = {"id_participant": id_participant}
var reply = UserClient.get("/api/user/assets/archive", params)

reply.requestSucceeded.connect(function(response, statusCode) {
console.log(response, statusCode);
});
}
}

}

0 comments on commit 12e3c52

Please sign in to comment.