|
|
|
@ -1,32 +1,30 @@ |
|
|
|
@if (hasAvailableActions()) { |
|
|
|
@if (actionList.length > 1) { |
|
|
|
<div ngbDropdown container="body" class="d-inline-block"> |
|
|
|
<button |
|
|
|
class="btn btn-primary btn-sm dropdown-toggle" |
|
|
|
data-toggle="dropdown" |
|
|
|
aria-haspopup="true" |
|
|
|
ngbDropdownToggle |
|
|
|
> |
|
|
|
<i [ngClass]="icon" [class.me-1]="icon"></i>{{ text | abpLocalization }} |
|
|
|
</button> |
|
|
|
<div ngbDropdownMenu> |
|
|
|
@for (action of actionList; track action.text) { |
|
|
|
<ng-container |
|
|
|
[ngTemplateOutlet]="dropDownBtnItemTmp" |
|
|
|
[ngTemplateOutletContext]="{ $implicit: action }" |
|
|
|
> |
|
|
|
</ng-container> |
|
|
|
} |
|
|
|
</div> |
|
|
|
@if (actionList.length > 1) { |
|
|
|
<div ngbDropdown container="body" class="d-inline-block"> |
|
|
|
<button |
|
|
|
class="btn btn-primary btn-sm dropdown-toggle" |
|
|
|
data-toggle="dropdown" |
|
|
|
aria-haspopup="true" |
|
|
|
ngbDropdownToggle |
|
|
|
> |
|
|
|
<i [ngClass]="icon" [class.me-1]="icon"></i>{{ text | abpLocalization }} |
|
|
|
</button> |
|
|
|
<div ngbDropdownMenu> |
|
|
|
@for (action of actionList; track action.text) { |
|
|
|
<ng-container |
|
|
|
[ngTemplateOutlet]="dropDownBtnItemTmp" |
|
|
|
[ngTemplateOutletContext]="{ $implicit: action }" |
|
|
|
> |
|
|
|
</ng-container> |
|
|
|
} |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
@if (actionList.length === 1) { |
|
|
|
<ng-container |
|
|
|
[ngTemplateOutlet]="btnTmp" |
|
|
|
[ngTemplateOutletContext]="{ $implicit: actionList.get(0).value }" |
|
|
|
></ng-container> |
|
|
|
} |
|
|
|
@if (actionList.length === 1) { |
|
|
|
<ng-container |
|
|
|
[ngTemplateOutlet]="btnTmp" |
|
|
|
[ngTemplateOutletContext]="{ $implicit: actionList.get(0).value }" |
|
|
|
></ng-container> |
|
|
|
} |
|
|
|
|
|
|
|
<ng-template #dropDownBtnItemTmp let-action> |
|
|
|
|