dashboard: show devices error within the form
This commit is contained in:
@@ -702,7 +702,12 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
});
|
||||
|
||||
Client.configureApp($scope.app.id, 'devices', { devices }, function (error) {
|
||||
if (error) return Client.error(error);
|
||||
if (error && error.statusCode === 400) {
|
||||
$scope.resources.error.devices = error.message;
|
||||
return $scope.resources.busy = false;
|
||||
} else if (error) {
|
||||
return Client.error(error);
|
||||
}
|
||||
|
||||
refreshApp($scope.app.id, function (error) {
|
||||
if (error) return Client.error(error);
|
||||
|
||||
Reference in New Issue
Block a user