diff --git a/src/js/angular/core/directives.js b/src/js/angular/core/directives.js index 042b28db2..66d4b98bf 100644 --- a/src/js/angular/core/directives.js +++ b/src/js/angular/core/directives.js @@ -140,6 +140,8 @@ function coreErrors($timeout) { scope.setAttrs(attrs); + scope.setRestricted(); + let previousElement; scope.showRemoteLocations = false; diff --git a/src/js/angular/import/controllers/import-view.controller.js b/src/js/angular/import/controllers/import-view.controller.js index c87e85c5c..570735632 100644 --- a/src/js/angular/import/controllers/import-view.controller.js +++ b/src/js/angular/import/controllers/import-view.controller.js @@ -221,6 +221,8 @@ importViewModule.controller('ImportViewCtrl', ['$scope', 'toastr', '$interval', * !!!This should be public because it's used by the upload and import controllers */ $scope.onRepositoryChange = () => { + // Update restricted on repositoryIsSet + $scope.setRestricted(); if ($scope.isRestricted) { return; }