You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When testing out the groups view under settings, I noticed there was an Uncaught error happening when a team save fails:
UserGroupView.js?v=2.22.0:260 Uncaught TypeError: this.alertTemplate is not a function at n.showAlert (UserGroupView.js?v=2.22.0:260:11) at error (UserGroupView.js?v=2.22.0:235:11) at Object.error (UserGroup.js?v=2.22.0:223:7) at c (jquery-1.9.1.min.js?v=2.22.0:3:7857) at Object.fireWith [as rejectWith] (jquery-1.9.1.min.js?v=2.22.0:3:8658) at k (jquery-1.9.1.min.js?v=2.22.0:5:14040) at XMLHttpRequest.r (jquery-1.9.1.min.js?v=2.22.0:5:18226)
After some further debugging it looks like when UserGroupView was extracted from UserView, the alertTemplate was missed in the refactor. It is still present in UserView but should be moved to the UserGroupView class.
To Reproduce
Steps to reproduce the behavior:
In order to enforce a failure, you will want to change the url arg in the ajax call in UserGroup to point to a different URL that would produce a save error.
Go to settings page and click on groups
Open up console and create a new group, you should see the same error
Expected behavior
An alert banner should be raised when a group is failed to be created
The text was updated successfully, but these errors were encountered:
Describe the bug
When testing out the groups view under settings, I noticed there was an
Uncaught
error happening when a team save fails:After some further debugging it looks like when UserGroupView was extracted from UserView, the alertTemplate was missed in the refactor. It is still present in UserView but should be moved to the UserGroupView class.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An alert banner should be raised when a group is failed to be created
The text was updated successfully, but these errors were encountered: