diff --git a/src/app/features/account/collaboratorsCtrl.js b/src/app/features/account/collaboratorsCtrl.js index 7bd0feaa5be..88b9fab7782 100644 --- a/src/app/features/account/collaboratorsCtrl.js +++ b/src/app/features/account/collaboratorsCtrl.js @@ -8,7 +8,10 @@ function (angular) { module.controller('CollaboratorsCtrl', function($scope, $http, backendSrv) { - $scope.collaborator = {}; + $scope.collaborator = { + loginOrEmail: '', + role: 'Viewer', + }; $scope.init = function() { $scope.get(); @@ -17,7 +20,6 @@ function (angular) { $scope.get = function() { backendSrv.get('/api/account/collaborators').then(function(collaborators) { $scope.collaborators = collaborators; - console.log(collaborators); }); }; @@ -30,7 +32,7 @@ function (angular) { }; $scope.addCollaborator = function() { - if (!$scope.addCollaboratorForm.$valid) { + if (!$scope.form.$valid) { return; } diff --git a/src/app/features/account/partials/account.html b/src/app/features/account/partials/account.html index a278505c5c5..a69ddb7adb1 100644 --- a/src/app/features/account/partials/account.html +++ b/src/app/features/account/partials/account.html @@ -16,40 +16,38 @@