dashboard: show devices error within the form

This commit is contained in:
Johannes Zellner
2024-12-05 15:27:10 +01:00
parent fbed850acc
commit d5b3a56129
2 changed files with 8 additions and 2 deletions
+6 -1
View File
@@ -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);