Skip to content

Commit

Permalink
fix settings validation error display
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed May 7, 2019
1 parent 0e76852 commit a45fb92
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ angular.module('streama').controller('settingsSettingsCtrl',
alertify.success(data.message || 'validation successful');
settings.valid = true;
$scope.loading = false;
}, function (data) {
}, function (response) {
var data = response.data;
alertify.error(data.message);
settings.invalid = true;
$scope.loading = false;
Expand Down

0 comments on commit a45fb92

Please sign in to comment.