File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -586,7 +586,8 @@ module fng.directives {
586
586
/* Array footer */
587
587
if ( info . noAdd !== true || typeof info . customFooter == 'string' || info . noneIndicator ) {
588
588
let footer : string = '' ;
589
- if ( typeof info . customFooter == 'string' ) {
589
+ const hasCustomFooter = typeof info . customFooter == 'string' ;
590
+ if ( hasCustomFooter ) {
590
591
footer = info . customFooter ;
591
592
}
592
593
let hideCond = '' ;
@@ -605,12 +606,14 @@ module fng.directives {
605
606
}
606
607
if ( info . noneIndicator ) {
607
608
footer += `<span ${ indicatorShowCond } class="none_indicator" id="no_${ info . id } _indicator">None</span>` ;
608
- // hideCond for the schema-foot is if there's no add button and no indicator
609
- hideCond = `${ model } .length > 0` ;
610
- if ( info . noAdd === true ) {
611
- hideCond = `ng-hide="${ hideCond } "` ;
612
- } else {
613
- hideCond = info . noAdd ? `ng-hide="${ info . noAdd } && ${ hideCond } "` : '' ;
609
+ // hideCond for the schema-foot is if there's no add button, no custom footer and no indicator
610
+ if ( ! hasCustomFooter ) {
611
+ hideCond = `${ model } .length > 0` ;
612
+ if ( info . noAdd === true ) {
613
+ hideCond = `ng-hide="${ hideCond } "` ;
614
+ } else {
615
+ hideCond = info . noAdd ? `ng-hide="${ info . noAdd } && ${ hideCond } "` : '' ;
616
+ }
614
617
}
615
618
}
616
619
if ( footer !== '' ) {
You can’t perform that action at this time.
0 commit comments