Skip to content

Commit

Permalink
RANGER-4611 : Security zone form not populate resources value properl…
Browse files Browse the repository at this point in the history
…y while creating and editing zone.

Signed-off-by: Dineshkumar Yadav <[email protected]>
  • Loading branch information
dhavaljrajpara authored and dineshkumar-yadav committed Jan 4, 2024
1 parent ed3a0f3 commit c2b83f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ define(function(require){
this.modelName = 'RangerZone';
this.modelAttrName = 'securityZones';
this.bindErrorEvents();
},
comparator: function(def) {
return def.get('name');
}
},{
// static class members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ define(function(require) {
cache: false,
async: false,
});
rangerZoneList.models = rangerZoneList.sortBy(function(model) {
return model.get('name').toLowerCase();
});
App.rContent.show(new vSecurityZone({
rangerService: rangerServiceList,
collection: rangerZoneList,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ define(function(require) {
cache: false,
async: false,
});
rangerZoneList.models = rangerZoneList.sortBy(function(model) {
return model.get('name').toLowerCase();
});
if (App.rSideBar.currentView) {
this.rSidebarContentHideAndShow('SecurityZone');
if (!_.isNaN(parseInt(listId))) {
Expand Down

0 comments on commit c2b83f5

Please sign in to comment.