Skip to content

Commit

Permalink
edit arguments for onActionButtonClick
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaShapoval committed Dec 10, 2024
1 parent f10a3bb commit 93ddb87
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
<div
class="flex flex-row flex-wrap box-border !justify-between items-center action-buttons-wrapper"
*ngIf="providerParameters?.providerId === currentProvider?.id">
<button (click)="onActionButtonClick('archiveWorkshop')" class="btn btn-cancel" mat-button>
<button (click)="onActionButtonClick(modalType.archiveWorkshop)" class="btn btn-cancel" mat-button>
{{ 'BUTTONS.ARCHIVE' | translate | uppercase }}
</button>
<div class="flex">
<a [routerLink]="['/create-workshop', workshop.id]" class="btn btn-cancel" mat-button>
{{ 'BUTTONS.EDIT' | translate | uppercase }}
</a>
<button class="btn" [disabled]="workshop.status !== workshopStatus.Draft" (click)="onActionButtonClick('publishWorkshop')" mat-button>
<button
class="btn"
[disabled]="workshop.status !== workshopStatus.Draft"
(click)="onActionButtonClick(modalType.publishWorkshop)"
mat-button>
{{ 'BUTTONS.PUBLISH' | translate | uppercase }}
</button>
</div>
Expand Down

0 comments on commit 93ddb87

Please sign in to comment.