Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
markiianbabiak committed Sep 27, 2024
1 parent f17373a commit 6faa2f8
Show file tree
Hide file tree
Showing 13 changed files with 439 additions and 358 deletions.
204 changes: 151 additions & 53 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"linkifyjs": "^3.0.4",
"ngx-color-picker": "^12.0.1",
"ngx-image-compress": "^13.1.9",
"ngx-socket-io": "^4.2.0",
"ngx-socket-io": "4.4.0",
"prettier": "^2.6.2",
"rxjs": "~6.6.0",
"rxjs": "~7.4.0",
"rxjs-pausable": "^1.0.0",
"swiper": "^8.4.7",
"tslib": "^2.7.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export class AddPostComponent {
this.board.projectID
);

if(boards){
for (const board of boards) {
if (
!project.teacherIDs.includes(board.ownerID) ||
Expand All @@ -303,6 +304,7 @@ export class AddPostComponent {
const newPost = await this.postService.create(post);
}
}
}
this.snackbarService.queueSnackbar(
'Successfully copied post to all student personal boards.'
);
Expand Down Expand Up @@ -332,7 +334,7 @@ export class AddPostComponent {

async handleDialogSubmit() {
this.creationInProgress = true;
let post: Post;
let post: Post | undefined;
if (this.data?.disableCreation) {
const _post = this.getPartialPost();
if (this.data.onComplete) {
Expand Down
Loading

0 comments on commit 6faa2f8

Please sign in to comment.