File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
security-admin/src/main/webapp/scripts/views Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ define(function(require){
223223 return m . name == that . ui . zoneDestination . val ( ) ;
224224 } )
225225 var zoneServiceListModel = new RangerServiceList ( ) ;
226+ zoneServiceListModel . clear ( ) ;
226227 zoneServiceListModel . fetch ( {
227228 cache : false ,
228229 async : false ,
@@ -385,6 +386,7 @@ define(function(require){
385386 return m . name == e . val
386387 } )
387388 var zoneServiceListModel = new RangerServiceList ( ) ;
389+ zoneServiceListModel . clear ( ) ;
388390 zoneServiceListModel . fetch ( {
389391 cache : false ,
390392 async : false ,
Original file line number Diff line number Diff line change @@ -326,12 +326,12 @@ define(function(require){
326326 if ( e . added ) {
327327 App . vZone . vZoneId = e . added . zoneId ;
328328 XAUtil . changeParamToUrlFragment ( { "securityZone" : e . val } , that . collection . modelName ) ;
329+ that . zoneServiceList . clear ( ) ;
329330 that . zoneServiceList . fetch ( {
330331 cache : false ,
331332 async : false ,
332333 url : "service/public/v2/api/zones/" + e . added . zoneId + "/service-headers" ,
333334 } )
334-
335335 } else {
336336 App . vZone . vZoneId = null ;
337337 //for url change on UI
@@ -369,6 +369,7 @@ define(function(require){
369369 App . vZone . vZoneId = zoneID ;
370370 }
371371 if ( _ . isEmpty ( this . zoneServiceList . attributes ) ) {
372+ this . zoneServiceList . clear ( )
372373 this . zoneServiceList . fetch ( {
373374 cache : false ,
374375 async : false ,
Original file line number Diff line number Diff line change @@ -403,6 +403,7 @@ define(function(require){
403403 App . vZone . vZoneName = e . val ;
404404 if ( e . added ) {
405405 App . vZone . vZoneId = e . added . zoneId ;
406+ that . zoneServiceList . clear ( ) ;
406407 that . zoneServiceList . fetch ( {
407408 cache : false ,
408409 async : false ,
You can’t perform that action at this time.
0 commit comments