Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into EW-1060
  • Loading branch information
Fshmit committed Dec 17, 2024
2 parents 4d93f64 + 7e3b37f commit db92381
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/store/course-room-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ export default class CourseRoomDetailsModule extends VuexModule {
columnBoards: string[];
}): Promise<void> {
this.resetBusinessError();
console.log("exportSettings", exportSettings);
try {
console.log("making the request");
const response =
await this.getCommonCartridgeApi.commonCartridgeControllerExportCourse(
this.roomData.roomId,
Expand All @@ -220,6 +222,8 @@ export default class CourseRoomDetailsModule extends VuexModule {
}
);

console.log("response", response);

const link = document.createElement("a");
link.href = URL.createObjectURL(
new Blob([response.data as unknown as Blob])
Expand All @@ -230,6 +234,8 @@ export default class CourseRoomDetailsModule extends VuexModule {
link.click();
URL.revokeObjectURL(link.href);
} catch (error: any) {
console.log("error", error);

this.setBusinessError({
statusCode: error?.response?.status,
message: error?.response?.statusText,
Expand Down

0 comments on commit db92381

Please sign in to comment.