Fixed umbsections directive - do not make any requests until the user is logged in - if they are already logged in, the event still executes.
This commit is contained in:
@@ -43,12 +43,7 @@ function sectionsDirective($timeout, $window, navigationService, sectionResource
|
||||
loadSections();
|
||||
}
|
||||
});
|
||||
|
||||
//on page refresh:
|
||||
if(!scope.sections){
|
||||
loadSections();
|
||||
}
|
||||
|
||||
|
||||
//on page resize
|
||||
window.onresize = calculateHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user