|
|
@ -19,17 +19,19 @@ |
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@if (hasPermissionToImportActivities) { |
|
|
@if (hasPermissionToImportActivities || hasPermissionToDeleteActivity) { |
|
|
<div class="d-flex"> |
|
|
<div class="d-flex"> |
|
|
<button |
|
|
@if (hasPermissionToImportActivities) { |
|
|
class="align-items-center d-flex" |
|
|
<button |
|
|
mat-stroked-button |
|
|
class="align-items-center d-flex" |
|
|
(click)="onImport()" |
|
|
mat-stroked-button |
|
|
> |
|
|
(click)="onImport()" |
|
|
<ion-icon class="mr-2" name="cloud-upload-outline" /> |
|
|
> |
|
|
<span><ng-container i18n>Import Activities</ng-container>...</span> |
|
|
<ion-icon class="mr-2" name="cloud-upload-outline" /> |
|
|
</button> |
|
|
<span><ng-container i18n>Import Activities</ng-container>...</span> |
|
|
@if (hasPermissionToExportActivities) { |
|
|
</button> |
|
|
|
|
|
} |
|
|
|
|
|
@if (hasPermissionToExportActivities || hasPermissionToDeleteActivity) { |
|
|
<button |
|
|
<button |
|
|
class="mx-1 no-min-width px-2" |
|
|
class="mx-1 no-min-width px-2" |
|
|
mat-stroked-button |
|
|
mat-stroked-button |
|
|
@ -44,16 +46,18 @@ |
|
|
class="no-max-width" |
|
|
class="no-max-width" |
|
|
xPosition="before" |
|
|
xPosition="before" |
|
|
> |
|
|
> |
|
|
<button |
|
|
@if (hasPermissionToImportActivities) { |
|
|
mat-menu-item |
|
|
<button |
|
|
[disabled]="dataSource()?.data.length === 0" |
|
|
mat-menu-item |
|
|
(click)="onImportDividends()" |
|
|
[disabled]="dataSource()?.data.length === 0" |
|
|
> |
|
|
(click)="onImportDividends()" |
|
|
<span class="align-items-center d-flex"> |
|
|
> |
|
|
<ion-icon class="mr-2" name="color-wand-outline" /> |
|
|
<span class="align-items-center d-flex"> |
|
|
<span><ng-container i18n>Import Dividends</ng-container>...</span> |
|
|
<ion-icon class="mr-2" name="color-wand-outline" /> |
|
|
</span> |
|
|
<span><ng-container i18n>Import Dividends</ng-container>...</span> |
|
|
</button> |
|
|
</span> |
|
|
|
|
|
</button> |
|
|
|
|
|
} |
|
|
@if (hasPermissionToExportActivities) { |
|
|
@if (hasPermissionToExportActivities) { |
|
|
<button |
|
|
<button |
|
|
class="align-items-center d-flex" |
|
|
class="align-items-center d-flex" |
|
|
@ -87,25 +91,31 @@ |
|
|
</span> |
|
|
</span> |
|
|
</button> |
|
|
</button> |
|
|
} |
|
|
} |
|
|
<hr class="m-0" /> |
|
|
@if (hasPermissionToDeleteActivity) { |
|
|
<button |
|
|
@if ( |
|
|
class="align-items-center d-flex" |
|
|
hasPermissionToExportActivities || hasPermissionToImportActivities |
|
|
mat-menu-item |
|
|
) { |
|
|
[disabled]="!canDeleteActivities()" |
|
|
<hr class="m-0" /> |
|
|
(click)="onDeleteActivities()" |
|
|
} |
|
|
> |
|
|
<button |
|
|
<span class="align-items-center d-flex"> |
|
|
class="align-items-center d-flex" |
|
|
<ion-icon class="mr-2" name="trash-outline" /> |
|
|
mat-menu-item |
|
|
@if (canDeleteActivities()) { |
|
|
[disabled]="!canDeleteActivities()" |
|
|
<span i18n |
|
|
(click)="onDeleteActivities()" |
|
|
>Delete {{ totalItems > 1 ? totalItems : '' }} |
|
|
> |
|
|
{totalItems, plural, =1 {Activity} other {Activities}}</span |
|
|
<span class="align-items-center d-flex"> |
|
|
> |
|
|
<ion-icon class="mr-2" name="trash-outline" /> |
|
|
} @else { |
|
|
@if (canDeleteActivities()) { |
|
|
<span i18n>Delete Activities</span> |
|
|
<span i18n |
|
|
} |
|
|
>Delete {{ totalItems > 1 ? totalItems : '' }} |
|
|
</span> |
|
|
{totalItems, plural, =1 {Activity} other {Activities}}</span |
|
|
</button> |
|
|
> |
|
|
|
|
|
} @else { |
|
|
|
|
|
<span i18n>Delete Activities</span> |
|
|
|
|
|
} |
|
|
|
|
|
</span> |
|
|
|
|
|
</button> |
|
|
|
|
|
} |
|
|
</mat-menu> |
|
|
</mat-menu> |
|
|
</div> |
|
|
</div> |
|
|
} |
|
|
} |
|
|
@ -504,15 +514,17 @@ |
|
|
</span> |
|
|
</span> |
|
|
</a> |
|
|
</a> |
|
|
} |
|
|
} |
|
|
<a |
|
|
@if (hasPermissionToCreateActivity) { |
|
|
mat-menu-item |
|
|
<a |
|
|
[routerLink]="activityDialogRouterLinks().get(element.id)?.clone" |
|
|
mat-menu-item |
|
|
> |
|
|
[routerLink]="activityDialogRouterLinks().get(element.id)?.clone" |
|
|
<span class="align-items-center d-flex"> |
|
|
> |
|
|
<ion-icon class="mr-2" name="copy-outline" /> |
|
|
<span class="align-items-center d-flex"> |
|
|
<span><ng-container i18n>Clone</ng-container>...</span> |
|
|
<ion-icon class="mr-2" name="copy-outline" /> |
|
|
</span> |
|
|
<span><ng-container i18n>Clone</ng-container>...</span> |
|
|
</a> |
|
|
</span> |
|
|
|
|
|
</a> |
|
|
|
|
|
} |
|
|
<button |
|
|
<button |
|
|
mat-menu-item |
|
|
mat-menu-item |
|
|
[disabled]="!isDraftActivity(element)" |
|
|
[disabled]="!isDraftActivity(element)" |
|
|
|