Skip to content

Commit

Permalink
Revert "GDB-8254: Import tab quickly flashes a wrong message (#1395)" (
Browse files Browse the repository at this point in the history
…#1406)

This reverts commit 16a4db6.
  • Loading branch information
boyan-tonchev authored May 20, 2024
1 parent 5acc323 commit 8337817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/angular/core/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ function coreErrors($timeout) {

scope.setAttrs(attrs);

scope.setRestricted();

let previousElement;

scope.showRemoteLocations = false;
Expand Down
2 changes: 2 additions & 0 deletions src/js/angular/import/controllers/import-view.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8337817

Please sign in to comment.