Skip to content

Commit fbedb42

Browse files
authored
[ui] not call StoreDisableSvc.setDisabledMap when listing repos (#2017)
1 parent c747864 commit fbedb42

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

uis/layover/app/js/controllers.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ indyControllers.controller('NavCtl', ['$scope', function($scope){
4646
indyControllers.controller('RemoteListCtl', ['$scope', '$location', 'RemoteSvc', 'StoreUtilSvc', 'ControlSvc', 'StoreDisableSvc', function($scope, $location, RemoteSvc, StoreUtilSvc, ControlSvc, StoreDisableSvc) {
4747
ControlSvc.addListingControlHrefs($scope, $location);
4848

49-
StoreDisableSvc.setDisabledMap($scope);
49+
//StoreDisableSvc.setDisabledMap($scope);
5050

5151
$scope.remoteOptionLegend = StoreUtilSvc.remoteOptionLegend();
5252
$scope.packageType = packageType($location.$$path);
@@ -147,7 +147,7 @@ indyControllers.controller('RemoteCtl', ['$scope', '$routeParams', '$location',
147147
indyControllers.controller('HostedListCtl', ['$scope', '$location', 'HostedSvc', 'StoreUtilSvc', 'ControlSvc', 'StoreDisableSvc', function($scope, $location, HostedSvc, StoreUtilSvc, ControlSvc, StoreDisableSvc) {
148148
ControlSvc.addListingControlHrefs($scope, $location);
149149

150-
StoreDisableSvc.setDisabledMap($scope);
150+
//StoreDisableSvc.setDisabledMap($scope);
151151

152152
$scope.hostedOptionLegend = StoreUtilSvc.hostedOptionLegend();
153153
$scope.packageType = packageType($location.$$path);
@@ -231,7 +231,7 @@ indyControllers.controller('HostedCtl', ['$scope', '$routeParams', '$location',
231231

232232
indyControllers.controller('GroupListCtl', ['$q', '$scope', '$location', 'GroupSvc', 'StoreUtilSvc', 'ControlSvc', 'StoreDisableSvc', 'AllStoreDisableSvc', 'PackageTypeSvc', function($q, $scope, $location, GroupSvc, StoreUtilSvc, ControlSvc, StoreDisableSvc, AllStoreDisableSvc, PackageTypeSvc) {
233233
ControlSvc.addListingControlHrefs($scope, $location);
234-
StoreDisableSvc.setDisabledMap($scope);
234+
//StoreDisableSvc.setDisabledMap($scope);
235235

236236
$scope.packageType = packageType($location.$$path);
237237
$scope.listing = GroupSvc.resource.query({packageType: $scope.packageType}, function(listing){

uis/layover/app/partials/group-list.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
<div ng-repeat="store in listing.items | filter:query | orderBy:orderProp" class="list-item store-listing-item listing-item-start">
4242
<div class="fieldset-caption">
4343
<a href="#/group/{{store.packageType}}/view/{{store.name}}">
44+
<span class="enabled-store">{{store.packageType}}-{{store.name}}</span>
45+
<!--
4446
<span class="enabled-store" ng-if="!isDisabled(store.key)">{{store.packageType}}-{{store.name}}</span>
4547
<span class="disabled-store" ng-if="isDisabled(store.key)">{{store.packageType}}-{{store.name}}</span>
48+
-->
4649
</a>
4750
</div>
4851
<div class="fieldset">
@@ -67,8 +70,11 @@
6770
<ol ng-if="store.display" class="content-panel item-expanded subsection">
6871
<li ng-repeat="item in store.constituents">
6972
<a href="#/{{item.type}}/{{item.packageType}}/view/{{item.name}}">
73+
<span class="enabled-store">{{item.key}}</span>
74+
<!--
7075
<span class="enabled-store" ng-if="!isDisabled(item.key)">{{item.key}}</span>
7176
<span class="disabled-store" ng-if="isDisabled(item.key)">{{item.key}}</span>
77+
-->
7278
</a>
7379
<div ng-if="item.type == 'remote'" class="subfields">
7480
<span class="description field">(Remote URL: <a target="_new" href="{{item.storeHref}}">{{item.storeHref}}</a>)</span>

uis/layover/app/partials/hosted-list.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@
5151
<div ng-repeat="store in listing.items | filter:query | orderBy:orderProp" class="listing-item list-item store-listing-item listing-item-start">
5252
<div class="fieldset-caption">
5353
<a href="#/hosted/{{store.packageType}}/view/{{store.name}}">
54+
<span class="enabled-store">{{store.packageType}}-{{store.name}}</span>
55+
<!--
5456
<span class="enabled-store" ng-if="!isDisabled(store.key)">{{store.packageType}}-{{store.name}}</span>
5557
<span class="disabled-store" ng-if="isDisabled(store.key)">{{store.packageType}}-{{store.name}}</span>
58+
-->
5659
</a>
5760
</div>
5861
<div class="fieldset">

uis/layover/app/partials/remote-list.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@
5050
<div ng-repeat="store in listing.items | filter:query | orderBy:orderProp" class="listing-item list-item store-listing-item listing-item-start">
5151
<div class="fieldset-caption">
5252
<a href="#/remote/{{store.packageType}}/view/{{store.name}}">
53+
<span class="enabled-store">{{store.packageType}}-{{store.name}}</span>
54+
<!--
5355
<span class="enabled-store" ng-if="!isDisabled(store.key)">{{store.packageType}}-{{store.name}}</span>
5456
<span class="disabled-store" ng-if="isDisabled(store.key)">{{store.packageType}}-{{store.name}}</span>
57+
-->
5558
</a>
5659
</div>
5760
<div class="fieldset two-col">

0 commit comments

Comments
 (0)