This is an automated email from the ASF dual-hosted git repository. machristie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit f9d053c98dad05037332a37a17505399c28624a4 Author: Marcus Christie <machr...@iu.edu> AuthorDate: Thu Feb 22 11:14:21 2018 -0500 AIRAVATA-2685 Redirect to group listing when group created --- .../apps/api/static/django_airavata_api/js/models/Group.js | 9 --------- .../django_airavata_groups/js/groups_components/GroupCreate.vue | 7 ++----- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/django_airavata/apps/api/static/django_airavata_api/js/models/Group.js b/django_airavata/apps/api/static/django_airavata_api/js/models/Group.js index 3b7a127..f570c2e 100644 --- a/django_airavata/apps/api/static/django_airavata_api/js/models/Group.js +++ b/django_airavata/apps/api/static/django_airavata_api/js/models/Group.js @@ -24,13 +24,4 @@ export default class Group extends BaseModel { } return null; } - - toJSONForCreate() { - // Remaining fields just get defaulted - return JSON.stringify(this, ["name", "description", "members"]); - } - - toJSONForUpdate() { - return JSON.stringify(this, ["id", "name", "description"]); - } } diff --git a/django_airavata/apps/groups/static/django_airavata_groups/js/groups_components/GroupCreate.vue b/django_airavata/apps/groups/static/django_airavata_groups/js/groups_components/GroupCreate.vue index c0b7505..90dbadc 100644 --- a/django_airavata/apps/groups/static/django_airavata_groups/js/groups_components/GroupCreate.vue +++ b/django_airavata/apps/groups/static/django_airavata_groups/js/groups_components/GroupCreate.vue @@ -55,11 +55,8 @@ export default { console.log(JSON.stringify(this.newGroup)); services.GroupService.create(this.newGroup) .then(result => { - console.log(result.json()); - this.showDismissibleAlert.dismissable = true; - this.showDismissibleAlert.message = "Successfully created a new group"; - this.showDismissibleAlert.variant = "success"; - this.newGroup = new models.Group(); + // TODO: redirect to the group view page + window.location.assign("/groups/"); }) .catch(error => { this.showDismissibleAlert.dismissable = true; -- To stop receiving notification emails like this one, please contact machris...@apache.org.