Skip to content

Commit

Permalink
Show errors on team invite failure (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdHeat authored Mar 4, 2024
1 parent b0f1332 commit 0c15cf9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions assets/js/teams/private.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ Alpine.data("CaptainMenu", () => ({
this.$store.inviteToken = url;
this.teamInviteModal = new Modal(document.getElementById("team-invite-modal"));
this.teamInviteModal.show();
} else {
Object.keys(response.errors).map(error => {
const error_msg = response.errors[error];
alert(error_msg);
});
}
},

Expand Down
1 change: 1 addition & 0 deletions static/assets/teams_private.ac38ae40.js

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

1 change: 0 additions & 1 deletion static/assets/teams_private.f5d5f4bc.js

This file was deleted.

2 changes: 1 addition & 1 deletion static/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
]
},
"assets/js/teams/private.js": {
"file": "assets/teams_private.f5d5f4bc.js",
"file": "assets/teams_private.ac38ae40.js",
"src": "assets/js/teams/private.js",
"isEntry": true,
"imports": [
Expand Down

0 comments on commit 0c15cf9

Please sign in to comment.