forked from hazza/dspace-angular
Issue#2535: Hide add more button in submission if no disabled sections
(cherry picked from commit 709848ee25
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
312b0aacf6
commit
0d376a6607
@@ -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