Skip to content

Commit

Permalink
fix regression due to angular upgrade #773
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed Apr 11, 2019
1 parent 9c99ca6 commit bc173e1
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -31,13 +31,12 @@ angular.module('streama').controller('settingsSettingsCtrl',
$scope.changeValue(settings);
$scope.loading = true;

apiService.settings.validateSettings(settings)
.success(function (data) {
apiService.settings.validateSettings(settings).then(function (response) {
var data = response.data;
alertify.success(data.message || 'validation successful');
settings.valid = true;
$scope.loading = false;
})
.error(function (data) {
}, function (data) {
alertify.error(data.message);
settings.invalid = true;
$scope.loading = false;
Expand Down

0 comments on commit bc173e1

Please sign in to comment.