Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
HAWKULAR-879 - Error message not showing on duplicate organization name
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrohling committed Dec 17, 2015
1 parent 366f6cd commit dded40d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions console/src/main/scripts/plugins/accounts/ts/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ module HawkularAccounts {
.then((organization:IOrganization) => {
this.NotificationsService.success('Organization successfully created.');
this.organizations.unshift(organization);
}, (type:string, error:IErrorPayload) => {
if (type === 'error') {
this.NotificationsService.error(`Error while creating organization: ${error.data.message}`);
}
}, (error:IErrorPayload) => {
this.NotificationsService.error(`Error while creating organization: ${error.data.message}`);
});
}

Expand Down Expand Up @@ -121,7 +119,7 @@ module HawkularAccounts {
this.$modalInstance.close(organization);
}, (error:IErrorPayload) => {
this.$log.debug(`Organization could NOT be added: ${error.data.message}`);
this.$modalInstance.dismiss('error', error);
this.$modalInstance.dismiss(error);
});
}
}
Expand Down

0 comments on commit dded40d

Please sign in to comment.