forked from hazza/dspace-angular
Issue#2535: Hide add more button in submission if no disabled sections
This commit is contained in:
@@ -3,13 +3,14 @@
|
|||||||
placement="bottom-right"
|
placement="bottom-right"
|
||||||
class="d-inline-block"
|
class="d-inline-block"
|
||||||
[ngClass]="{'w-100': windowService.isXs()}">
|
[ngClass]="{'w-100': windowService.isXs()}">
|
||||||
|
<ng-container *ngIf="hasSections$ | async">
|
||||||
<button class="btn btn-outline-primary dropdown-toggle"
|
<button class="btn btn-outline-primary dropdown-toggle"
|
||||||
id="sectionControls"
|
id="sectionControls"
|
||||||
[disabled]="!(hasSections$ | async)"
|
|
||||||
[ngClass]="{'w-100': (windowService.isXs() | async)}"
|
[ngClass]="{'w-100': (windowService.isXs() | async)}"
|
||||||
ngbDropdownToggle>
|
ngbDropdownToggle>
|
||||||
{{ 'submission.sections.general.add-more' | translate }} <i class="fa fa-plus" aria-hidden="true"></i>
|
{{ 'submission.sections.general.add-more' | translate }} <i class="fa fa-plus" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
</ng-container>
|
||||||
<div ngbDropdownMenu
|
<div ngbDropdownMenu
|
||||||
class="sections-dropdown-menu"
|
class="sections-dropdown-menu"
|
||||||
aria-labelledby="sectionControls"
|
aria-labelledby="sectionControls"
|
||||||
|
Reference in New Issue
Block a user