Skip to content

Commit

Permalink
Fixes #11886 - search parameters bleeding on details nutupane page
Browse files Browse the repository at this point in the history
  • Loading branch information
John Mitsch committed Oct 1, 2015
1 parent 1a5c16b commit d31d8e5
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 4 deletions.
Expand Up @@ -32,6 +32,7 @@ angular.module('Bastion.activation-keys').controller('ActivationKeyAddSubscripti
$scope.contentNutupane = new Nutupane(Subscription, params);
$scope.detailsTable = $scope.contentNutupane.table;
$scope.isAdding = false;
$scope.contentNutupane.setSearchKey('subscriptionSearch');
$scope.contentNutupane.masterOnly = true;

$scope.groupedSubscriptions = {};
Expand Down
Expand Up @@ -27,6 +27,7 @@ angular.module('Bastion.activation-keys').controller('ActivationKeySubscriptions
$scope.contentNutupane = new Nutupane(Subscription, params);
$scope.detailsTable = $scope.contentNutupane.table;
$scope.contentNutupane.masterOnly = true;
$scope.contentNutupane.setSearchKey('subscriptionSearch');
$scope.isRemoving = false;

$scope.groupedSubscriptions = {};
Expand Down
Expand Up @@ -27,6 +27,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostAddSubscriptionsC

$scope.contentNutupane = new Nutupane(Subscription, params);
$scope.detailsTable = $scope.contentNutupane.table;
$scope.contentNutupane.setSearchKey('subscriptionSearch');

$scope.contentNutupane.masterOnly = true;
$scope.isAdding = false;
Expand Down
Expand Up @@ -25,6 +25,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostSubscriptionsCont

$scope.contentNutupane = new Nutupane(Subscription, params);
$scope.detailsTable = $scope.contentNutupane.table;
$scope.contentNutupane.setSearchKey('subscriptionSearch');

$scope.contentNutupane.masterOnly = true;
$scope.isRemoving = false;
Expand Down
Expand Up @@ -25,7 +25,7 @@ function ($scope, $q, Nutupane, Repository, Environment, ContentView, CurrentOrg
$scope.detailsTable = repositoriesNutupane.table;
$scope.detailsTable.initialLoad = false;
repositoriesNutupane.masterOnly = true;
repositoriesNutupane.searchKey = 'repositoriesSearch';
repositoriesNutupane.setSearchKey('repositoriesSearch');

environment = Environment.queryUnpaged(function (response) {
$scope.environments = response.results;
Expand Down
Expand Up @@ -26,7 +26,7 @@ angular.module('Bastion.packages').controller('PackageDetailsRepositoriesControl
$scope.detailsTable = repositoriesNutupane.table;
$scope.detailsTable.initialLoad = false;
repositoriesNutupane.masterOnly = true;
repositoriesNutupane.searchKey = 'repositoriesSearch';
repositoriesNutupane.setSearchKey('repositoriesSearch');

environment = Environment.queryUnpaged(function (response) {
$scope.environments = response.results;
Expand Down
Expand Up @@ -16,7 +16,7 @@

contentViewsNutupane = new Nutupane(ContentViewVersion, params);
contentViewsNutupane.masterOnly = true;
contentViewsNutupane.searchKey = 'contentViewsSearch';
contentViewsNutupane.setSearchKey('contentViewsSearch');

$scope.detailsTable = contentViewsNutupane.table;

Expand Down
Expand Up @@ -16,7 +16,7 @@

repositoriesNutupane = new Nutupane(Repository, params);
repositoriesNutupane.masterOnly = true;
repositoriesNutupane.searchKey = 'repositoriesSearch';
repositoriesNutupane.setSearchKey('repositoriesSearch');

$scope.detailsTable = repositoriesNutupane.table;
}
Expand Down
Expand Up @@ -14,6 +14,7 @@ describe('Controller: ActivationKeyAddSubscriptionsController', function() {
showColumns: function() {}
};
this.get = function() {};
this.setSearchKey = function() {};
};
ActivationKey = {};
});
Expand Down
Expand Up @@ -52,6 +52,7 @@ describe('Controller: ContentHostAddSubscriptionsController', function() {
this.get = function() {};
this.query = function() {};
this.refresh = function() {};
this.setSearchKey = function() {};
};
translate = function(message) {
return message;
Expand Down
Expand Up @@ -52,6 +52,7 @@ describe('Controller: ContentHostSubscriptionsController', function() {
this.get = function() {};
this.query = function() {};
this.refresh = function() {};
this.setSearchKey = function() {};
};

$scope.contentHost = new ContentHost({
Expand Down
Expand Up @@ -31,6 +31,7 @@ describe('Controller: PackageDetailsRepositoriesController', function() {
this.load = function () {
return {then: function () {}}
};
this.setSearchKey = function () {};
};

Environment = MockResource.$new();
Expand Down
Expand Up @@ -5,6 +5,7 @@ describe('Controller: PuppetModulesDetailsContentViewsController', function() {

beforeEach(function() {
Nutupane = function() {
this.setSearchKey = function() {};
this.table = {
params: {},
showColumns: function() {}
Expand Down

0 comments on commit d31d8e5

Please sign in to comment.